thellie
Member
Hi,
I'm not sure if this is a bug or not. If I set it to UTC the dbase will show the UTC datetime and the front end will show the timezone adjusted datetime. I'm based in Thailand btw...
However, what I'm getting is, when saving a datetime jdate (Server timezone: Bangkok / jdate: Local time):
Example A
Bangkok / UTC
set jdate to 09:55
MySQL = 02:55
Front end = 09:55
which is correct...
Example B
Bangkok/Local time
set jdate to 09:55
MySQL = 09:55
Front end = 16:55
which is incorrect. The front end should still be showing 09:55, not adding the time difference.
I realise I could just keep the jdate element as UTC, but I prefer to use local time when creating jdate elements because if I have to refer to data in the MySQl dbase the datetime will be the same as in the front end.
Or is my thinking squiffy..?
I'm not sure if this is a bug or not. If I set it to UTC the dbase will show the UTC datetime and the front end will show the timezone adjusted datetime. I'm based in Thailand btw...
However, what I'm getting is, when saving a datetime jdate (Server timezone: Bangkok / jdate: Local time):
- it saves the local time to the dbase (correctly)
- but when reopening the record it shows the local time + the time difference (7 hrs)
Example A
Bangkok / UTC
set jdate to 09:55
MySQL = 02:55
Front end = 09:55
which is correct...
Example B
Bangkok/Local time
set jdate to 09:55
MySQL = 09:55
Front end = 16:55
which is incorrect. The front end should still be showing 09:55, not adding the time difference.
I realise I could just keep the jdate element as UTC, but I prefer to use local time when creating jdate elements because if I have to refer to data in the MySQl dbase the datetime will be the same as in the front end.
Or is my thinking squiffy..?