mojombo/jekyll — Issue #492: Overriding system timezone when formatting time
Author: komiga
Created: 2012-01-30 15:21:33+00:00
State: open

Say there is a DateTime of `2012-01-30T09:52:24-05:00`; it specifies a specific timezone which is lost when formatting the object to a string (via the `date` and `date_to_xmlschema` filters, for example). When the object is formatted, it will use the host system's timezone, which is an issue for someone who would wish to format the time in a particular timezone.

Suggestions/requests:

1. Add a `timezone` configuration field that will override the system's timezone; or
2. Add a `timezone` parameter to current time formatters (or a new formatter).

This is mainly an issue only when hosting on a site that doesn't give you the ability to use plugins (such as GitHub, which is causing the issue in my case). I've never used Ruby before so I don't know how feasible this is. I also am not certain what the exact cause is -- whether the parsing of a date-time string is converting the time to the system's timezone or whether the formatting of the object specifies the timezone.