Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timezone not being parsed on some machines #165

Open
ttecles opened this issue Mar 6, 2025 · 0 comments
Open

Timezone not being parsed on some machines #165

ttecles opened this issue Mar 6, 2025 · 0 comments

Comments

@ttecles
Copy link

ttecles commented Mar 6, 2025

Hi,

I am running the ciso8601 parse_datetime function in different hosts with the same python version 3.9.18 and the same ciso8601 version 1.0.8 but I am seeing some inconsistencies.

In Linux hostname1 5.15.0-125-generic #135-Ubuntu SMP Fri Sep 27 13:53:58 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux host I get the following:

Python 3.9.18 (main, Aug 25 2023, 13:20:14) 
[GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from ciso8601 import parse_datetime
>>> parse_datetime("2024-01-01T00:00:00+01:00")
datetime.datetime(2024, 1, 1, 0, 0, tzinfo=pytz.FixedOffset(60))

But in a Linux hostname2 6.11.0-19-generic #19~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Feb 17 11:51:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux host:

Python 3.9.18 (main, Mar  6 2025, 15:28:01) 
[GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from ciso8601 import parse_datetime
>>> parse_datetime("2024-01-01T00:00:00+01:00")
datetime.datetime(2024, 1, 1, 0, 0)

I get no tzinfo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant