Database server time zone error
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Database server time zone error
Database server time zone error
04-12-2014 10:37 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I've just noticed that under the 'Variables' tab in phpMyAdmin (on the 'sql5c51a.megasqlservers.eu' server) the value for 'system time zone' is EST, which would explain the five hour time difference.
Can this be changed (back?) to GMT? Makes more sense to be on UK time rather than New York time!
Re: Database server time zone error
05-12-2014 9:20 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: Database server time zone error
05-12-2014 9:27 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
What's being used to retrieve these times from the database? PHP? If so, then could you not define your timezone using an .htaccess file like this?
php_value date.timezone Europe/London
Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵
Re: Database server time zone error
05-12-2014 12:23 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
One could argue that the current-time stamp generated within the database should be in UTC (Zulu time) not local time.
...though think before posting, it is possible that they are, but are being changed to local time by the extraction layer - managing date-time stamps across time zones always was a pain in the bum!
Kevin
In another browser tab, login into the Plusnet user portal BEFORE clicking the fault & ticket links
Superusers are not staff, but they do have a direct line of communication into the business in order to raise issues, concerns and feedback from the community.
If this post helped, please click the Thumbs Up and if it fixed your issue, please click the This fixed my problem green button below.
Re: Database server time zone error
05-12-2014 12:26 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Townman ... it is possible that they are, but are being changed to local time by the extraction layer...
I suspect you're right Kevin.
Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵
Re: Database server time zone error
05-12-2014 12:49 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Yes, PHP. I'm just displaying the data the server sends out, in the format '2014-11-24 10:51:31' for example. From my database backups it is stored as GMT but in a page and in phpMyAdmin it is EST.
I'm certain that until about 1.5 to 2 weeks ago it was showing the correct time, so can only assume that something changed recently.
Re: Database server time zone error
05-12-2014 1:02 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵
Re: Database server time zone error
05-12-2014 1:09 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Am confused but happy

Maybe 'system time zone' = EST and the five hour difference in my data is just a coincidence. Appologies to all if this has been a wild-goose chase!
Re: Database server time zone error
05-12-2014 1:56 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Time zones, DST and databases have always been a pain in the bum. I recall working on a major UK institution's system using oracle (yes it hits the big boys too) where we often saw a 1 hour difference in database time stamps depending on how the database query was run - direct into Oracle or through the application middle ware.
I do not recall that we ever really resolved the issue, other than by ensuring we never mixed data query strategies. It can make diagnostic analysis very difficult!

And whilst I'm sharing pearls of wisdom - in respect of working with across the pond (time zone) platforms - keep all dates in ISO format - CCYYMMDD - or DD MMM CCYY so as to avoid 5th Jan and 1st May confusion. Applications written / tested on date data before the 13th of the month always worked better.

In another browser tab, login into the Plusnet user portal BEFORE clicking the fault & ticket links
Superusers are not staff, but they do have a direct line of communication into the business in order to raise issues, concerns and feedback from the community.
If this post helped, please click the Thumbs Up and if it fixed your issue, please click the This fixed my problem green button below.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Database server time zone error