Skip to content

Discrepancies in Dates (Published/Created/Modified) #2403

@eduardomart

Description

@eduardomart

This is a brand new record I created:
Screen Shot 2021-02-16 at 4 09 14 PM

Notice the Created and Modified dates are identical, all good, except it is currently Feb. 16, 4:08 PM here. (Please ignore the exact minute as there are slight differences between my testing and with the screengrabs etc)

So I went to config.yaml and set my timezone:

timezone: America/Los_Angeles

So now I go back and try to create a record again:
Screen Shot 2021-02-16 at 4 16 21 PM

The Modified time is correct, but not the Created time (this is now 8 hrs behind)

To further complicate things, once the record is saved:
Screen Shot 2021-02-16 at 4 58 44 PM

Published time is correct, but Created and Modified date/times are now both 8hrs behind

Now for the front end, in my template I have this:

Created: {{ record.createdAt|localedatetime("%A %B %e, %Y | %H:%M") }}
<br>
Pub: {{ record.publishedAt|localedatetime("%A %B %e, %Y | %H:%M") }}
<br>
Mod: {{ record.modifiedAt|localedatetime("%A %B %e, %Y | %H:%M") }}

They all show the 8hr ahead difference, even though I have the correct timezone set in config.yaml
Screen Shot 2021-02-16 at 4 30 44 PM

If I output {{ "now"|date("m/d/Y | g:i a") }} I do get the actual current date/time.

🤯

--

Bolt 4.1.13

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