Skip to content

Store all DB datetime fields in UTC #540

@lousyfool

Description

@lousyfool

Currently many (= most?) datetime fields are stored in the DB in the user's timezone as set in their J! account or, if set to "default" there or if it's a guest in the frontend, in J!'s global system timezone.
That's a big no-no, typically messing up both backend and frontend display, add/edit etc etc, basically J!'s native time system.

In the database, all datetime fields must be stored in UTC time. Always and everywhere, no matter set system or user timezones.

Also see https://www.joomlaworks.net/forum/k2-en/63669-the-timezone-conundrum

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions