Jekyll post.date
or site.date
seems to automatically have the timezone mentioned, is there any way I could change this? Or at least change timezone to UTC?
*In Linux Env
You can define the timezone in _config.yml
like this:
timezone: UTC
See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for other values (TZ column)
Use the Liquid date
filter to format the date however you like:
{{ post.date | date: "%a, %b %d, %y" }}
>
Mon, Oct 10, 16
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.