kmain4 / StatusPage-UptimeRobot

24 stars 3 forks source link

Timezone #2

Closed yeyeoke closed 8 years ago

yeyeoke commented 8 years ago

I noticed that the statuspage gives me the wrong time and timezone, it says EST when im in CEST. Granted, im not very experienced in webdesign but I managed to get this working except for the timezone, is there a simple variable that I might change to get it fixed?

kmain4 commented 8 years ago

Thanks for reporting it @yeyeoke, its probably using the web servers timezone, but the EST is hard coded. I'll fix that in the next commit.

yeyeoke commented 8 years ago

Okay, the hardcoded part with EST was simple enough to remove.

Would it be possible to add something like "date_default_timezone_set('Europe/Stockholm');" to override the webservers timezone?

kmain4 commented 8 years ago

@yeyeoke I removed EST from the master branch, but the timezone should be correct for the local client, it just isn't showing it.

yeyeoke commented 8 years ago

Not sure what you mean but I just tried it, and Uptime Robot shows that "Plex" went down 14.38 (correct timezone) but the statuspage shows it being 12.38.

kmain4 commented 8 years ago

Is UptimeRobot in the correct timezone?

yeyeoke commented 8 years ago

Yea, just noticed that UptimeRobot doesnt support CEST. No wonder why it didnt work then! :)

kmain4 commented 8 years ago

Sounds good. Thanks for helping!