Ancestors

Toot

Written by Ruben Borg Nielsen on 2024-08-07 at 12:29

Coming from #python datetime objects, that hold timezone information to keep track of what 12:00AM means in terms of a global website; it scares me quite a but coming over to #csharp, where a DateTime objects don't know their timezone, and I need to keep track of that separately.

I'm now trying to figure out how to best implement a case, where all web app users are in a timezone, and all dates they POST are assumed to correlate to that timezone...

[#]dotnet

=> More informations about this toot | More toots from eldamir@hachyderm.io

Descendants

Written by derek :prami: on 2024-08-07 at 13:38

@eldamir would DateTimeOffset be better for your use case?

=> More informations about this toot | More toots from zerocaps@social.lol

Written by Ruben Borg Nielsen on 2024-08-07 at 17:27

@zerocaps seems like nodatime solves all the problems I had. Will look into that in detail 😊 DateTimeOffset wouldn’t be enough, because I would be left to handle things like daylight savings on my own, which is not feasible

=> More informations about this toot | More toots from eldamir@hachyderm.io

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/112920742872821820
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
262.974719 milliseconds
Gemini-to-HTML Time
1.13412 milliseconds

This content has been proxied by September (ba2dc).