Problem appears to be: JavaScript code using the UTC offset for today (liveblog_settings.utc_offset) (-300, 5 hours, EST). However, in October, when the post was published the offset was (-240, 4 hours, EDT).
formattedTime() should not take offset as a parameter. It should take timezone_string as parameter.
If a live blog occurs during DST (say, October 1), but is read at a later time (say, December 1), all of the timestamps will be off by one hour.
Database shows (correct):
JSON shows (correct):
Website shows (incorrect):
Expected:
Related code: https://github.com/Automattic/liveblog/blob/master/src/react/utils/utils.js#L155
Problem appears to be: JavaScript code using the UTC offset for today (
liveblog_settings.utc_offset
) (-300, 5 hours, EST). However, in October, when the post was published the offset was (-240, 4 hours, EDT).formattedTime()
should not take offset as a parameter. It should take timezone_string as parameter.