keystone icon indicating copy to clipboard operation
keystone copied to clipboard

DateTime field offset and local time

Open gautamsi opened this issue 6 years ago • 8 comments

I would want to use DateTime offset set to local timezone, this way all the date string can be viewed in admin ui as local date time rather than UTC.

possible improvements.

gautamsi avatar Nov 20 '19 06:11 gautamsi

What do you mean? The offset field does seem to be store the local timezone (+11:00 for example).

Vultraz avatar Nov 27 '19 20:11 Vultraz

not for me, it stored UTC

gautamsi avatar Nov 27 '19 20:11 gautamsi

I think it's better to store dates as UTC and then convert this to local timezone in the front-end. I'm pretty sure that's the widely accepted best-practice.

MadeByMike avatar Nov 28 '19 21:11 MadeByMike

What you really want is the ability to customise the admin-ui?

MadeByMike avatar Nov 28 '19 21:11 MadeByMike

I would like to set the default offset in field config and use it along with admin-ui. admin-ui should automatically adjust to offset while displaying. While saving it should again save that to utc and offset pair as usual.

gautamsi avatar Nov 29 '19 05:11 gautamsi

It looks like there hasn't been any activity here in over 6 months. Sorry about that! We've flagged this issue for special attention. It wil be manually reviewed by maintainers, not automatically closed. If you have any additional information please leave us a comment. It really helps! Thank you for you contribution. :)

stale[bot] avatar Mar 28 '20 05:03 stale[bot]

I would like to set the default offset in field config and use it along with admin-ui. admin-ui should automatically adjust to offset while displaying. While saving it should again save that to utc and offset pair as usual.

+1 This would be the expected behaviour for a user.

MichaelZaporozhets avatar Feb 26 '21 04:02 MichaelZaporozhets

It looks like there hasn't been any activity here in over 6 months. Sorry about that! We've flagged this issue for special attention. It wil be manually reviewed by maintainers, not automatically closed. If you have any additional information please leave us a comment. It really helps! Thank you for you contribution. :)

stale[bot] avatar Jun 28 '21 11:06 stale[bot]