Skip to content

Blog posts don't appear in certain time zones (t/command/create.t fails) #474

@preaction

Description

@preaction

When you're in a UTC+ timezone (say, UTC+12 why not), and you have a post for 2016-01-05, if it's before noon (00:00 UTC), your post won't show up.

This manifests as a failure in t/command/create.t: The blog post created is for today, but if it's before 00:00 UTC, the blog will only deploy yesterday's content.

This is because DateTime::Moonpig, which we use for finding today's date, defaults to the UTC time zone. In this instance, we would really prefer localtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions