andrew867 / timeclock

An updated version of PHP Timeclock
40 stars 69 forks source link

Punches are stored in local timezone #19

Open andrew867 opened 8 years ago

andrew867 commented 8 years ago

Currently punches are stored in info in the local timezone instead of GMT. Timeclock should be changed to store all punches in GMT and add another column that specifies the timezone it was created in.

hjelmua commented 8 years ago

changing // $tz_stamp = mktime ($hour, $min, $sec, $month, $day, $year); // testing better ways $tz_stamp = time ($hour, $min, $sec, $month, $day, $year); and the the same in time clock solved the issue for me.