Hacker News new | past | comments | ask | show | jobs | submit login

Because the existing codebase already uses naive datetimes. For example, perhaps there is a feature flag component that includes checks like:

    input_dt > datetime.datetime(2023, 1, 2, 3, 4, 5)
As mentioned elsewhere, it's common to serialize datatimes without timezone because it's a huge waste of space and speed in databases and elsewhere to constantly include the timezone info. Of course you could handle this at the edge like many other kinds of serialization, but many apps exist which instead choose to keep all datetimes naive and handle TZ conversions at the edge instead.



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: