Skip to content

OS Dates before 01/01/2011 are broken #46

Closed
alphagov/notifications-admin
#3314

Description

@elementalistic

I'm using an embedded linux with a startup kernal time of 01/01/2010, with flask hosted site as a config tool. If the device doesn't have an internet connection (to update time from NTP), and they trigger TimeStampSigner.sign() function in itsdangerous.py, the int_to_byte assert fails as num is < 0.

I've not delved into why the logic expects the date to be greater then 2011, but it breaks it for me.

Activity

  1. egorf commented on Jul 29, 2015

    @egorf

    Hi!
    I have the same problem. I am using a flask app in an embedded Linux IOT device. Default startup time is 01.01.2000. Do you guys plan to fix this? The only workaround I found is setting date on startup every time.
    Another question is why is it exactly 2011?
    Thank you!

  2. added a commit that references this issue on Jul 7, 2016
  3. added a commit that references this issue on Jul 7, 2016
  4. added this to the 1.0.0 milestone on Sep 28, 2018
  5. added a commit that references this issue on Feb 19, 2020
  6. locked as resolved and limited conversation to collaborators on Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions