Skip to content

Game state does not persist between refreshes if browser locale is non-US.  #15

@RuggMatt

Description

@RuggMatt

I noticed the game does not seem to save progress when refreshing on Firefox. This seems to be because of my browser locale rendering the date in a differnt format than expected by the code.

This seems to be an issue with a difference in formatting between the saved game state format, which is formatted as M/D/Y, and the date it compares to from the "today" element, which is formatted Y-M-D, according to my browser's locale. These are compared in the game.js file.

image

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