Reputation: 11035
According to Jekyll's frontmatter documentation, a date
variable can be used to specify a date and time of when the post was published. Which date format is Jekyll expecting here? Some examples I've seen show, e.g:
date: 2010-09-15 14:40:45
but is it possible to also include time zone information? How is Jekyll going to parse this string?
Upvotes: 8
Views: 5925
Reputation: 3596
When building paths Jekyll will only parse the date portion and ignore the time part.
In a template calling page.date
will return the date/time of the post or the full date / time from the front matter if included.
You can include a UTC offset in the date YYYY-MM-DD HH:MM:SS +/-TTTT
Upvotes: 4