Skip to content

utcnow() works better on windows/dev_appserver for __make_sid #33

@sbonham2003

Description

@sbonham2003

dev_appserver returns local time on windows when datetime.datetime.now() is called in __make_sid. This caused cookies to expire incorrectly since local time is formatted with the required GMT substring. I found that using datetime.datetime.utcnow() solved this.

Apparently, this is not a problem on Appserver production since google use UTC in the cloud.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions