https://github.com/matchachoco010/hexo-timezone-permalink
https://github.com/matchachoco010/hexo-timezone-permalink
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/matchachoco010/hexo-timezone-permalink
- Owner: MatchaChoco010
- Created: 2018-10-11T11:50:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-11T12:05:05.000Z (over 7 years ago)
- Last Synced: 2025-02-13T02:26:37.874Z (over 1 year ago)
- Language: CSS
- Size: 813 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
_config.yml is this:
``` yaml _config.yml
...
timezone: America/New_York
...
permalink: :year/:month/:day/:title/
...
```
and `source/_posts/test.md` is this:
``` yaml front_matter
---
title: test
date: 2018-10-11 23:00:00
tags:
---
```
The permalink of this article should be `/2018/10/11/test/`.
But `hexo generate` in Japan, which +0900, `/2018/10/12/test/index.html` is generated.

The article date is correct (2018/10/11).

Change the machine timezone to -0500 and `hexo generate`, `/2018/10/11/test.index.html` is generated.
It seems that the permalink is not generated correctly if the time zone of _config.yml and the time zone setting of the machine are incorrect.