Jump to content

ThomasF

Members
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling
  • Location
    Minnesota

ThomasF's Achievements

Newbie

Newbie (2/6)

0

Reputation

  1. Thanks for the reply. I did some more research on this issue and there is apparently a MySQL command that you can use to set the default timezone on a per session basis: SET time_zone='offset'; The 'offset' represents the difference to UTC/GMT, so in my case it would have to be set to '+0:00'. I can run this command in phpMyAdmin and it works fine. However, I'm not sure how/where to inject this bit of code into my ProcessWire site. It has to run on every page request before any queries take place. Is there a hook or some other way to achieve this?
  2. First of all, thank you Ryan and the ProcessWire community for creating such an amazing framework! I've run into a similar problem with a site for an overseas client. The client is based in London, so I set the $config->timezone setting to 'Europe/London'. However, the server the site is hosted on is on the US East Coast. Whenever I edit a page in the back-end, the "Modified" date gets set to the current time of the server, and it will say it was edited "4 hrs ago", even though it should really say less than a minute ago. Maybe I'm misunderstanding how the $config->timezone should be set. Should this always be set to the same timezone as the server, regardless of where the client/organization is located? I don't believe I can change the timezone for the MySQL server, since the site is on a shared host.
×
×
  • Create New...