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
I'd like to use IANA time zone codes for specifying localized time in post dates, like so:
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
ztoken.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