Intermesh / groupoffice

Group Office groupware and CRM
https://www.group-office.com
Other
176 stars 46 forks source link

6.7.x - datetimefield #1154

Open michalcharvat opened 2 weeks ago

michalcharvat commented 2 weeks ago

There is hug bug in datetimefield, respectively in Date override / extension. If you serialize date with 00:00:00 it is always converts to date only which is basically wrong because you loose info about timezone.

image
mschering commented 2 weeks ago

I can't replicate it. If I set a date with 0:00 it's saved correctly: image

michalcharvat commented 2 weeks ago

You can easily replicated it if you change user's timezone.

GMT timezone image

Europe/Prague or Berlin... image

When you access GO which runs in Europe from USA, there are other problem mostly in calendars and email. However in this case date is always send in Y-m-d format which is stored to database and loaded back in user's timezone ie instead of 0000 you get 0200 immediately after save.

michalcharvat commented 2 weeks ago

@mschering Any hint? For what is there that logic? Date fields without time?