this post was submitted on 18 Apr 2024
915 points (96.1% liked)

Science Memes

9978 readers
1377 users here now

Welcome to c/science_memes @ Mander.xyz!

A place for majestic STEMLORD peacocking, as well as memes about the realities of working in a lab.



Rules

  1. Don't throw mud. Behave like an intellectual and remember the human.
  2. Keep it rooted (on topic).
  3. No spam.
  4. Infographics welcome, get schooled.


Sister Communities

Science and Research

Biology and Life Sciences

Physical Sciences

Humanities and Social Sciences

Practical and Applied Sciences

Memes

Miscellaneous

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 22 points 4 months ago (2 children)

Write everything in UTC, cast to local time zone for UIs

Life problems solved

[–] [email protected] 3 points 4 months ago

That's essentially what I did in my recent UI that I made for someone.

  • You want to insert date time
  • Select method: UTC, Time Zone, offset from GMT
  • Enter time
  • I convert it to UTC and send to backend
[–] [email protected] 2 points 4 months ago (1 children)

That... still requires knowing which time zone to display. It doesn't remove the requirement at all.

[–] [email protected] 1 points 4 months ago (1 children)
[–] [email protected] 3 points 4 months ago* (last edited 4 months ago)

and who implements localtime? You realize these functions call down to the system, and the system is very much ALSO written and maintained by coders...

The point is SOMEONE actually does have to implement it and maintain it.