Skip to content

Regression in msgpack-python 1.0.0 wraps around timestamps after 2038 #451

@progval

Description

@progval

Hi,

I just found this data corruption after upgrading msgpack from 1.0.0 to 1.0.1:

$ pip3 install --user msgpack==1.0.0
[...]
$ python3 -c "import msgpack, datetime; print(msgpack.unpackb(msgpack.packb(datetime.datetime(2100, 1, 1, 1, 1, tzinfo=datetime.timezone.utc), datetime=True), timestamp=3))"
2100-01-01 01:01:00+00:00
$ pip3 install --user msgpack==1.0.1
[...]
$ python3 -c "import msgpack, datetime; print(msgpack.unpackb(msgpack.packb(datetime.datetime(2100, 1, 1, 1, 1, tzinfo=datetime.timezone.utc), datetime=True), timestamp=3))"
1963-11-25 18:32:44+00:00

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions