1, make book (time_zone = osaka / tokyo / sapporo), in japan time.
sudo ./cake ChangeState betnow
3, Scheduled time, state does not change.
This is because by multiplying the change value in japan time it is registered in japan time, has been registered.
My idea is if you are not wrong, as follows, Please fix.
Make book, refer to the time_zone, by calculating the GMT Standard Time, at the timestamp, Registered bet_start, bet_finish, result_time.
View, and then calculated by reference to time_zone, to be displayed.
Summary
1, make book, converted to a timestamp of GMT Standard Time, then registered.
2, The display on the screen, and then converted to local time.
I thought registration of time is strange.
1, make book (time_zone = osaka / tokyo / sapporo), in japan time.
This is because by multiplying the change value in japan time it is registered in japan time, has been registered. My idea is if you are not wrong, as follows, Please fix.
Make book, refer to the time_zone, by calculating the GMT Standard Time, at the timestamp, Registered bet_start, bet_finish, result_time.
View, and then calculated by reference to time_zone, to be displayed.
Summary 1, make book, converted to a timestamp of GMT Standard Time, then registered. 2, The display on the screen, and then converted to local time.