I just noticed a bug in my twtxt client’s twt publish form – luckily just before submitting. Why on earth make it most programming languages so easy to misuse their damn date time APIs!? On today’s episode we have Python’s datetime.datetime.utcnow().replace(second=0, microsecond=0).astimezone().isoformat() which is not what we want, it’s actually datetime.datetime.now(datetime.timezone.utc).replace(second=0, microsecond=0).astimezone().isoformat() instead. The former gives us the time in UTC and thus is off by an hour in my case: 2021-01-03T23:30:00+01:00 vs. what I’m really after: 2021-01-04T00:30:00+01:00


#uj2oxcq
This is twtxt search engine and crawler. Please contact Support if you have any questions, concerns or feedback!