-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Labels
Description
Check List
Please check followings before submitting a new issue.
- I have already read Docs page & Troubleshooting page
- I have already searched existing issues and they are not help to me
- [n/a] I examined error or warning messages and it's difficult to solve
- Using the latest version of Hexo (run
hexo versionto check) - Node.js is higher than 8.6.0
Expected behavior
Timezone gets set to UTC
Actual behavior
Timezone remains local time
How to reproduce?
- Set timezone to
UTCin _config.yml - Change date_format to
date_format: YYYY-MM-DDTHH:mm:ss.SSSZ - Write a post using a timezone
- When I load it up, the timezone is
-0700for me as I am currently in PDT, expectZor+0000
Environment & Settings
Node.js & npm version
> hexo version
hexo: 4.2.0
hexo-cli: 3.1.0
os: Windows_NT 10.0.18362 win32 x64
node: 13.7.0
v8: 7.9.317.25-node.28
uv: 1.34.1
zlib: 1.2.11
brotli: 1.0.7
ares: 1.15.0
modules: 79
nghttp2: 1.40.0
napi: 5
llhttp: 2.0.1
openssl: 1.1.1d
cldr: 36.0
icu: 65.1
tz: 2019c
unicode: 12.1
Your site _config.yml (Optional)
Your theme _config.yml (Optional)
Hexo and Plugin version(npm ls --depth 0)
+-- hexo@4.2.0
+-- hexo-deployer-git@2.1.0
+-- hexo-generator-alias@0.1.3
+-- hexo-generator-archive@1.0.0
+-- hexo-generator-category@1.0.0
+-- hexo-generator-tag@1.0.0
+-- hexo-renderer-ejs@1.0.0
+-- hexo-renderer-marked@2.0.0
+-- hexo-renderer-stylus@1.1.0
`-- hexo-server@1.0.0
Your package.json package.json
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "hexo generate",
"clean": "hexo clean",
"deploy": "hexo deploy",
"server": "hexo server"
},
"hexo": {
"version": "4.2.0"
},
"dependencies": {
"hexo": "^4.0.0",
"hexo-deployer-git": "^2.1.0",
"hexo-generator-alias": "^0.1.3",
"hexo-generator-archive": "^1.0.0",
"hexo-generator-category": "^1.0.0",
"hexo-generator-tag": "^1.0.0",
"hexo-renderer-ejs": "^1.0.0",
"hexo-renderer-marked": "^2.0.0",
"hexo-renderer-stylus": "^1.1.0",
"hexo-server": "^1.0.0"
}
}