Timestamp in comments is UTC time but says CEST
Categories
(Bugzilla :: Bugzilla-General, defect)
Tracking
()
People
(Reporter: michael.bode, Unassigned)
Details
Comment 1•5 years ago
|
||
Worksforme, see Bug 11383 Comment 172.
Michael, do you still see this bug?
Hi Thomas,
yes, but I'm still on the same Bugzilla Version 5.0.4. It's not a big problem. I will probably upgrade to the next LTS Ubuntu version and whatever Bugzilla version that brings sometime next year.
I am having this same problem.
Ubuntu 20.04.6 LTS
MySQL 5.7.44-google-log - (Google)
Bugzilla 5.0.6
Server time is correctly displaying as CDT:
$ date
Wed 24 Apr 2024 04:01:27 PM CDT
If I set my time zone preferences to the default (same as server), Bugzilla gives the wrong time. It gives UTC time but labels it as CDT time:
Last modified: 2024-04-24 21:11:37 CDT
For comparison, I have a WordPress site on the same server, and times are accurate on that site.
Comment 4•1 year ago
|
||
I believe most of the date code in Bugzilla asks the database server for the date. What is the DB reporting?
SELECT DATE(); should show you the current time on the DB server, but not the time zone.
SELECT TIMEDIFF(NOW() - UTC_TIMESTAMP); should tell you the time zone offset.
Comment 5•1 year ago
|
||
Actually, Bugzilla is fetching the time from the DB server as UTC and not getting the time zone from there.
There's a user preference for the time zone so each Bugzilla account should be able to set it themselves. The site-wide default is set in the Default Preferences section in Administration.
Description
•