Skip to content

Configuration Hook/callback for custom date parsing #867

@letrastudio

Description

@letrastudio

I'd like to use IANA time zone codes for specifying localized time in post dates, like so:

date: 2019-08-31 23:59:56 Europe/Lisbon

In my humble opinion this would be the best way to avoid the dates off by one day pitfall.

Unlike UTC-based time offsets (e.g. +01:00), IANA codes abstract away offset differences from Daylight Saving Time, so a single value magically works all year round. They're also easier to understand, and provide a bit more geographical context, which is a nice bonus.

IANA codes are supported in Luxon, represented by the z token.

Eleventy currently rejects this date format as invalid, but it works in Jekyll. I'm porting over my Jekyll blog, and with over 800 posts all using this date format, um, help

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfavoriteVanity label! We like this enhancement request a lot.feature: datesRelated to content dates

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions