New Post Date/Time doesn't match set timezone #444
Unanswered
itsmingyoo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I have an issue with the date/time of the post being incorrect. Let me elaborate
My _config.yml has 'timezone: America/Los_Angeles' set.
When I create a new post it has the following (using this time as an example):
--- title: Test Post for Date/Time date: 2024-06-02 17:00:00 tags: ---
The post rendered on the browser shows the date to be 06-03-2024 when it should only do that at 2024-06-02 24:00:00 or 2024-06-03 00:00:00.
I noticed that in the themes/aurora/src/models that the Article & Page class files aren't parsing the correct time but only grabbing UTC time which may be the issue.
I'm not sure if this is a problem with hexo.io itself incorrectly parsing date/time or with the theme, but is there proper approach to solve this or a current solution to this?
Beta Was this translation helpful? Give feedback.
All reactions