Noziro / MediaTracker

EXTREME ALPHA STATE. Track all of your media, from movies, to games, anime, books, and more. Official name TBD.
0 stars 0 forks source link

Date display is skewed by PHP timezone. #17

Closed Noziro closed 4 years ago

Noziro commented 4 years ago

Dates put through the readable_date() function in server.php, seen below, displays based on a skewed time zone. Not sure as of yet where in the pipeline it is going wrong so cannot precisely describe the problem. https://github.com/Noziro/MediaTracker/blob/779614791d42c54f533acf72aa465196b0549132/server/server.php#L175

If I input a date from UTC-7, and PHP is set to UTC, it will display "7 hours ago" instead of now. This is "fixed" if PHP is set to the same time zone as I am.