WeBid: Timezones with daylight savings time not calculated correctly
问题 I'm currently using an open source application: WeBid (available here) Here is the issue: The user has a preferred timezone stored in DB The site has a default timezone stored in DB All db stored dates are stored at "GMT-0" The application doesn't calculate the DST (Daylight Savings Time) correctly as it uses the following code: (includes/functions_global.php) $this->ctime = time() + (($this->SETTINGS['timecorrection'] + gmdate('I')) * 3600); $this->tdiff = ($this->SETTINGS['timecorrection']