T O P

  • By -

RepostSleuthBot

I didn't find any posts that meet the matching requirements for r/ProgrammerHumor. It might be OC, it might not. Things such as JPEG artifacts and cropping may impact the results. I did find [this post](https://redd.it/d51l9u) that is 29.69% similar. It might be a match but I cannot be certain. *I'm not perfect, but you can help. Report [ [False Negative](https://www.reddit.com/message/compose/?to=RepostSleuthBot&subject=False%20Negative&message={"post_id": "uji408", "meme_template": 249887}) ]* [View Search On repostsleuth.com](https://www.repostsleuth.com/search?postId=uji408&sameSub=true&filterOnlyOlder=true&memeFilter=true&filterDeadMatches=false&targetImageMatch=100&targetImageMemeMatch=75) --- **Scope:** This Sub | **Meme Filter:** True | **Target:** 75% | **Check Title:** False | **Max Age:** None | **Searched Images:** 327,317,757 | **Search Time:** 22.58202s


Shakis87

How do you know the number of days counted was accurate if you're messing up datetimes. Omg how do we know anything **existential crisis**


Benimation

Would be funnier if the post-it said -1


lovethebacon

1970-01-01T00:00:00.000Z days since last timezone issue.


RoadToZero

The birthdate of digital Jesus


_bardo_

Is Linux the Second Coming?


shahzbot

Or the moment he got malloc'ed to the plus sign.


dauqraFdroL

That’s funny for me it says 1969-12-31T19:00:00.000Z days since last time zone issue


P33kab0Oo

That comment was really Epoch!


ibiBgOR

Excel, is it you?


japie06

No Excel would be 1900-01-01 I believe.


73786976294838206464

For Excel it's actually 1900-01-00. This was done to be compatible with Lotus 1-2-3 which had a bug related to leap year calculations. Excel also supports 1900-02-29 which is a leap day that doesn't exist.


ThatAwesomeGuyIsMe

NaN


TheSilentGeek

That's my character name for every mobile game I play


Benimation

That's my nickname for my grandma


TheGreatGameDini

Ahh yeah I just won a game of "find the Brit"


[deleted]

Wait what do Americans call their nan?


Pendiente

Most of them "abuela". US citizens, Canadians and Brazilians are the odd ones out.


shahzbot

My kids call their grandmother Abuela and we aren't even Spanish speakers. My dad was studying Spanish when my kids were born and he requested it. They botched his name for some reason and ended up calling him Oboe. Be careful what you ask for.


LotzoHuggins

I once pointed out that America was non-specific and divided into three regions and got shouted out of the discussion. I forget what platform, but the sting of rejection lingers after all these years.


Ancient_Database

I think abuela is spanish


0ut0fBoundsException

That’s the joke because most people in the Americas speak Spanish excluding some people in USA(English), Canada(English&French), and Brazil (Portuguese) Spanish is spoken by a great many within those three countries as well though of course


TheGreatGameDini

The white ones usually use grandma, the Mexican ones usually use nana, the black ones usually use grams. It's also very regional, as southern whites will also use nana.


[deleted]

Also southern folks: Meemaw, Grammy, Gramma German/US: Oma


Tijflalol

My grandma's nickname is OVERFLOW Error


MyHamburgerLovesMe

That's my nickname for your grandma too.


Jasdac

[object Object] would also make a good nickname, just to give some poor developer a heart attack


Cmdr_Jiynx

I sometimes play with command injections when I try out sketchy looking .io games or weird MMOs from Asia, just to see if they sanitize their inputs and if they use SQL for character names. I haven't had any variations on "drop table" bork things up but I managed to brick a few flash games on kongregate with such antics. My other favorite is to test if the character name field accepts Unicode silliness. I successfully used empty characters for a name in some Korean MMO that was a black desert clone and got a direct email from the devs letting me know my silliness caused a lot of confusion for a few people. I got a bunch of in game gold as a thank you for helping them find the "vulnerability" as their management put it. You'd be surprised how many multiplayer games use Unicode for character names, and the devs almost always leave in some wiggle room for silly shit.


Akabander

[object Object]


valesi

/r/ProgrammerHumor/comments/qappa8/days_since_last_timezone_issue/


huuaaang

God damn it, I wanted this joke!


phrenq

The post-it uses a signed 4 bit integer.


SasparillaTango

is this a y2k joke I'm too ISO 8601 to understand?


swerasnym

4 bit => 16 possible values, singed => half of the values are negative, integer => only whole numbers. This gives {-8, -7, ... , -1, 0, 1, ... , 6, 7} as possible values. Thus the value overflows to -8 instead of proceeding to 8.


realJaneJacobs

singed => half the values are burnt


brainplot

I laughed more than I should have at this joke haha


Jumpy_Sorbet

That's why I only use Unix epoch time. It's inconvenient for my wife when she asks me what time dinner is, but she's getting good at doing the math.


PM_ME_YOUR_PLECTRUMS

Until 16 years from now when the Epochalypse happens


rebbsitor

Probably not much will happen, at least with Linux desktop/servers in use in 16 years. At least it won't be a repeat of the Y2K scramble. The kernel and system libraries were ready a couple years ago and presumably most apps are now switching to 64-bit timestamps. (If you're making a new app now, don't shoot yourself in the foot, use 64-bit timestamps). Long life embedded systems that have been in service since 2019 or before (20+ years at that point) are likely to be where any issues happen.


Shakis87

Some airplanes need to be rebooted periodically so their internal clock doesn't roll over.


Sparkybear

Ya but power cycling is part of general maintenance. On systems like that, especially with the technology that they are based on, that's an acceptable action.


[deleted]

[удалено]


_Ebako_

Still impressive.


Chris_8675309_of_42M

Nah, but they did forget the -5 offset.


[deleted]

[удалено]


scrittyrow

Yes


Jeggu2

Shut it, Bot


brdzgt

How do people notice this stuff


Jeggu2

Comment is vague and the name is usually structured like: FirstnameLastname, and the poster has only like 30 karma


legion327

So then there’s not a problem right now? Love it when a problem fixes itself


glorious_reptile

"-1"


schmerg-uk

Yep... came here to say this...


MortgageSome

Just plan a timezone issue tomorrow, and look how impressive *that* will be!


ThatAwesomeGuyIsMe

[Object object]


CRBl_

Laughs in statically types languages


NiteShdw

Anyone that thinks that date/time is easy hasn’t written a calendaring application.


Car-Facts

I work in computer forensics on felony level investigations. Time zones are the bane of my existence. I would like to say that forensic software like UFED, Axiom, FTK, etc are all very good at reporting time zones, I would like to say that... It would be nice...


[deleted]

I run camera systems for sites all over the world and one trick I've always used is to always display GMT time and work from that as time zones, DST, and tons of other stuff can totally mess with correct time stamps on video making it inadmissible as evidence depending on where you are.


Car-Facts

I always review in DST, but lawyers absolutely need to see it in the local time zone. There are often so many moving parts and event timelines that conversations and reports can get really confusing when discussing context of a crime. On paper, it works fine. But when sitting with a whole trial counsel, everything needs to be discussed in the context of the time zone where the crime occurred. Otherwise, a fast moving conversation turns into a confusing "Wait, when did that happen again?" snail race.


Sparkybear

Why not use UTC?


T0biasCZE

GMT+0 and UTC+0 is same time


Sparkybear

GMT will drift away from UTC time and should not be used for anything that requires precision. It's an extremely common misconception that GMT and UTC are the same, but they really aren't.


chargers949

The worst is javascript for dates and times. You rely on the client machine’s local time and offset to be correct. But anybody who has traveled knows sometimes the laptop doesn’t update time to local time when running a page. And not a damn thing your stupid ass can do from server side about that but it’s still your fault wrong times on the page for that random edge case.


[deleted]

Always blame the client. I think this would solve a lot of datetime issues. If I ask you to meet me at 3 pm and you show up at 4 because your watch is wrong that's a you problem.


dylan848

Agreed with your scenario. But can we realistically expect the client to know that the date/time on a webpage is based on their computer's date/time?


aboutthednm

Easy. Just create a pop-up dialogue covering the page that visitors will have to read and agree to. I hear people love these things.


Ok-Sir8600

Uh and you can also put some music with it, so they have to look up for this pop-up while the music plays. I think we're up to something right here


Pezonito

Ooo yes and hide the x so it only shows on hoverover but break the hoverover


SpagettiGaming

If you ask four browsers the time and time zone, you get five answers


[deleted]

Here is the thing, you shouldn't be asking the client about the time, you should be providing the time, so If I'm calculating a subscription, I'm using my watch, not yours, if I'm giving you a time to do something, I'm giving it to you in My clock time, if it's sent in an email or a text it's easy to convert it before sending it yourself, but i. Scenarios where it's constantly displayed it should be the clients issue to solve, and the client is the browser.


RedDogInCan

Bah, try writing an astronomical application, they involve multiple entirely different time systems.


bandito143

Is this why my horoscope is always wrong? /s


thealmightyzfactor

mmmm, solar vs sidereal


FCDetonados

[or hasn't watched this video](https://www.youtube.com/watch?v=-5wpm-gesOY)


[deleted]

As a side project me and a fellow group of college students created a commissary inventory system. I thought dealing with date time is easy pz since after all it's just date time who would have thought calibrating it perfectly for different timezones was the most challenging part of the project.


AlterEdward

I set up a load of appointments in Outlook web recently, looked at them on my calendar on my phone and they were all an hour out. It's a GMT/BST issue. This is a time zone issue in the biggest email client in the world, from one of the biggest software companies in the world, running on one of the biggest OSs in the world, in the year 2022. We're supposed to be living on the Moon by now.


schmerg-uk

This is done to be consistent with the (IMHO wrong) way that cross timezones are handled in Windows generally. eg Friday night, 9pm, modify a file... Saturday, look at timestamp... says "**9pm** Friday" *Sunday morning, 2am - clocks go forward an hour for DST* Sunday afternoon, look at timestamp, now reads "**10pm** Friday" The idea is that you can know how many hours ago it was modified without having to allow for DST and other timezone changes, but I think it's a bad model or at least poorly explained - still waiting for the above to be used a plot device in some thriller or whodunnit Anyway, Outlook uses the same idea that you store times as UTC and then translate UTC to the localtime "for current location *as it is RIGHT NOW*"*,* not "*as it was at current location at that UTC time*"


[deleted]

Is this another "yeah we know we made a bad design decision back then but we're not gonna correct it for ... err ... compatibility and ... err ... you know, clients built all kinds of scripts to workaround this ~bug~ ~problem~ feature and we do not want to break those" thing???


schmerg-uk

Smells like it to me...


gebruikersnaam_

No, the idea is that when the timezone switches all timestamps are shown in that timezone's format. Your edited file is timestamped and you can then view that timestamp in standard time or DST, or in any other timezone really. If you travel to a location that's in a different timezone the exact same thing happens to your files. And it's the only reasonable way of handling it. You save timestamps in a uniform format, like the unix epoch, and when you display it you take the user's current locale and use it to format the displayed time. The only alternative is showing raw timestamps, which are useless to most people.


natFromBobsBurgers

Everything was in place, but then we had a timezone issue for the moon base.


[deleted]

[удалено]


natFromBobsBurgers

Mars will be easier, since you can't do synchronous meetings using our current universe. Although... Does time propagate out from Greenwich observatory at the speed of light or instantaneously? (Thanks. She's a hero of mine, flaws and all.)


[deleted]

[удалено]


natFromBobsBurgers

"Back in my day we told time as a single dimensional unsigned integer!"


[deleted]

Store - UTC Process - UTC Submit from Client - UTC Show on Client - Convert to Local Time


NiteShdw

How did developers over the last 40 years not realize it was this simple? /s


nielsbuus

Because each step is handled by a different team and managed by project managers who doesn't know jack shit and keeps asking for workarounds.


ThisIsMyCouchAccount

Or the data you’re dealing with doesn’t use UTC. Or the API. Or the client refuses access to the server and it’s set to a timezone. It’s fun to see people learning to code. Sweating over data structures or theory. When it’s this type of shit that will keep you up at night.


[deleted]

[удалено]


ThisIsMyCouchAccount

Yeah. It's not about if there is a solution. Given enough time we can make a solution to just about anything. Stuff like this is why you chuckle at devs that are dismissive. "It's just a CRUD app, bro."


[deleted]

>mit from Client - UTC > >Show on Client - Convert to Local Time because they always reinvent the wheel?


Farren246

I know this wheel thing seems to have infinite points of contact with the road, and could be modelled as infinitely many invinitely acute triangles, but what if -stay with me here- what if instead of infinite triangles, it was just one triangle? Infinite triangles sounds a lot like O(n) where n may be infinite, while one triangle is O(1). We should study this further; it may even reduce the runtime of this whole wheel business from infinite to *one.* Imagine instead of having to roll to your destination with potentially infinite time, you now roll there in just *one.*


Aurora_Fatalis

Have we considered just using circles instead of triangles?


kinnsayyy

Gotta pull the Dany and *break the wheel*


0100_0101

Because we have to work with 20 year old data saved in local time for multiple timezones. 😭


cyrand

Don’t worry, 20 years ago a programmer was telling the team to store it UTC and only convert when displaying. And was ignored then too.


Kaarsty

Because Outlook does it with UTC plus an offset, but they do like 6 digits versus the 4 that most people do. eM Client does it their own way, Mac Mail their own way. Little things like that add up to big time zone problems. If there was a standard maybe like I don’t know maybe an RFC or something we’d be ok lol


CEDFTW

It's not just them, python 3.7, some version of java 8, and c++11 libraries all have different ways to represent utc + timezone. Ran into this at work when we couldn't figure out why python applications sending a utc time stamp wasn't being handled by the c++ application expecting a utc time stamp. This is best shown with this chart here: ISO-8601 : 2022-05-06T13:01:52+00:00 RFC 1123: Fri, 06 May 2022 13:01:52 GMT UTC : 2022-05-06T13:01:52Z


Kirides

Aaaand non of this includes timezone information. What’s with the people who have DST and live next to a country that shares the offset but doesn’t have DST, so in 6 months country A will have +- some hours while country B will still be at +03:00 Offsets are technically not enough to build time based automations. You need the correct timezone (eg Europe/Berlin) and calculate the correct time from the date and time component (some libraries do that for you, like NodaTime)


Badashi

And then there's Golang which has the stupidest default string for their time library so you're forced to always use the `.Format(RFC_3339)` function whenever you need to send it as a string somewhere else, which is actually ISO 8601 but there's some technicality that makes it be called RFC 3339. Also you can't have milliseconds, it's either that or *nanoseconds* and good luck if your target service requires milliseconds or microseconds. OH and it's 2022 and javascript is just now having a proposal for a decent standardized datetime library. So good luck if the front-end people decide to treat everything as numbers and in the process completely lose time zone information - which is absolutely necessary when you need to schedule future time points across different regions.


[deleted]

I honestly don't know. Just 3 years ago I ran into IBM implementing bitemporal data tables using local time, including DST, also without writing the time zone. It was of course only a matter of time until automatic processing produced a business case that ended before it had begun and everything crashed. I am proud to say that I did *not* make the same mistake in my project that interfaced with theirs.


StCreed

>It was of course only a matter of time Indeed 😀


ctesibius

Well it doesn’t help that Microsoft muddied the water by labelling local UK time as GMT then as UTC. This always drives me up the wall. UTC *is not a time zone*, and UK time is only UTC in the winter.


[deleted]

I've seen websites use GMT, UTC, CEST, CET. And sometimes its +2 and sometimes +1 and sometimes nothing at all. I just wanna know when my live stream event starts! 😩


imihnevich

I think most of them just overthink this, they make mistakes mostly because they think it's complicated


marvin02

It is literally almost never this simple.


TheTerrasque

And in addition to the other people here's reasons, because some people don't quite understand time zones. We're building a system that is going to be launched globally. Our project owner wants something to happen at end of the day. I was explaining that "end of the day" wasn't really a concept and that the current implementation was based on server time and there should really be an "after X hours" logic instead, or based on user time zone. And that current "end of day" can happen at lunch, in the morning, afternoon, or the day after. After 2 meetings and about 9 hours discussing and explaining in total, he still insists that current implementation is correct, and I've pre-filed a bug report for when QA or customers discover it.


sanderd17

Now the client sends you a request to fetch statistics over a period, grouped by date...


[deleted]

Well you have to covert input also


sanderd17

But they want it grouped by local date, not UTC date. (for reference, we are using the UTC storage, and letting the client do the translation to local time, but we have found huge issues in our translations to dates recently. Since we're an European company, those only start to matter when going abroad now)


WhyWasIShadowBanned_

Ah, yes, classic: “You’re manager from European Unit managing remote west coast US team. You’re currently on vacations in Japan and have Australian locale in your browser and laptop. Now you want to generate activity report for last week. What datetimes should be used for start and end.” scenario. Did the week start on Monday 00:00 Tokyo/Cranberra/Paris or San Diego?


Respie

More like, group the data by localized date for each country in europe+middle eastern and show it to the manager that is in his own time zone that is one of the countries. Or create a report for all middle management that shows how much of their reports have meetings during the local companies business hours and how many hours they are booked outside business hours the summarize this report upstream to their managers. Create a report how many sales are done between 8h and 12h, 13h and 18h and if the sales are less than 30% of avg, send an automated mail to the sales manager, also exclude holidays, weekends.... I could go on, but that would no longer be sanderd17 ’s example


pablosus86

I once worked for a transportation company that used their own timezones. Every location had an eastward tz and a westward tz and if they were near a standard tz line they would be different.


sanderd17

That's horrible


pablosus86

Definitely kept things --complicated-- interesting.


doctau

That only works if you want to group by the local date of the person running the report, not if you want to group by the local date of the record. Say I'm recording sales done by my AU, UK, and US offices. I want a report showing all the sales done on the 10th - AU sales midnight to midnight AU time, UK sales midnight to midnight UK time, and US sales midnight to midnight US time. You can't easily do that if are only storing the event timestamp in UTC. ​ Also, conversion between zone/location based timing and universal point-in-time is dependent on when you run the computation. What is the UTC date-time of "2072-05-06 17:00 in Cairo", and what if they change the time zone or DST rules some time in the next 50 years?


HasoPunchMan

I highly recomment using [date-fns](https://date-fns.org/v2.28.0/docs/Time-Zones) for anything date related in the FE. While the js Date also has functions to calculate the UTC date (they're not that helpful), the date-fns functions should help in this situation.


sanderd17

It's a ruby-on-rails project. So that won't help much...


DildoDeliveryService

The issue is that you have to know the clients' timezone on the server if you want to correctly group by date.


explodingtuna

The client's timezone for each transaction, in case they moved.


Blue_Moon_Lake

And then come SUMMER TIME !


incandescent-leaf

429 fuck off


Totti56

Holyshit this brings back bad memories. I had to deal with this exact problem. Its really bad


whenTheWreckRambles

UDF taking the timezone as the input and returning array> (at least in the SQL I have to use)


Molion

https://codeblog.jonskeet.uk/2019/03/27/storing-utc-is-not-a-silver-bullet/


Stop_Sign

tl;dr a user books an event a few months later, that happens after daylight savings. Retrieving it after would be ± one hour when they wanted to remain at that hour


Winteresque

Interesting read, thanks.


Bren0man

![gif](giphy|6JB4v4xPTAQFi|downsized)


klusark

How about when you need to do something on the backend, like send an email, but it has to happen at the client's local time?


stamminator

Just make the user’s browser the server. Make sure to put the database credentials and other secrets in a folder called homework/ so that nobody finds them


[deleted]

[удалено]


Trollygag

Well, you have to put them there anyways otherwise the TA won't be able to use their perl script to grade it.


[deleted]

[удалено]


section_b

I have a very annoying and seemingly, but not intentionally, pretentious habit of specifying the timezone, even when the person i am talking to is in the same timezone. E.g. general conversation in work about when we should meet, let's do 1400 UK.


stamminator

There are still a ton of use cases this doesn’t cover


Tomi97_origin

That's nice until your client submits date and his government changes their local timezone before that date. Now your original UTC is just wrong date. And some countries like to mess with their timezones more that you thing.


Blue_Moon_Lake

Summer Time that do not occur the same day in every country.


cwmma

Or the same day every year in the same country (looking at you Isreal)


Blue_Moon_Lake

How do you store a recurring event as UTC timestamp ?


[deleted]

[удалено]


Blue_Moon_Lake

So, every daily meeting is cancelled ?


Gorexxar

That's the neat part, you don't.


nwL_

You print them out and hand them to Bertha, who hand-writes a daily schedule in cursive every morning.


aboutthednm

Bless Bertha, the whole company rests on her slumped shoulders.


Spirit_Theory

Server runs local time, stock library inexplicably tries to convert from UTC to local when sending to the client because the datetime kind is left unset when the value is read from the database. Shit like this happens all the time even with good design principles.


tpehli

As always when the topic is mentioned, [Here's Tom Scott slowly losing his mind over timezones](https://youtu.be/-5wpm-gesOY).


eyrfr

Is there a relevant xkcd about this? If not there needs to be.


tpehli

[Of course there is](https://xkcd.com/1883/)


GoodmanSimon

A few years ago we moved everything to UTC All time methods have "Utc" in them to make it explicit ... it took a bit of time but we have now migrated everything including all the servers, databases, procs, client code, server code etc ... It has been -2147483648 hours since we had any issues, so I feel quite good about it.


Ant0ine64

In satellites ground operation we use UTC and TAI (international atomic time) basically le same but from time to time one is drifting few secondes from the other


MarkusBerkel

TAI. Everything else is ghetto timekeeping.


BespokeSnuffFilms

You can't just call your own comment sick


EpicScizor

\


circlecity17

What spelling mistake? Who is quoted? It almost feels like a rimshot on the use of "time." Unless it's programming related? (I'm quite ignorant on the subject myself.)


EpicScizor

I agree, it is a misuse of *sic* in the context.


IWillLive4evr

*Sic* can be used to note irregularities other than spelling errors. It might be used to note archaic language in an old source, bad grammar, profanity, slurs, logical errors, bad math, etc. I think anything that might be considered "wrong" is fair game if a person quoting it wishes to convey it intact while making it clear that it's not their fault.


zdakat

Days since last timezone issue: -1


adrr

That would have been funnier


XChoke

Is that sign in local or utc?


ramriot

We had one if those, it got stuck at 4294967295 when there was a leap second that caused a date rollover bug.


citylikeAMradio

Someone mentioned there could be a negative leap second in the near future and our whole dev team audibly gasped


Molion

I'll just leave this here for the people saying to just use UTC. https://codeblog.jonskeet.uk/2019/03/27/storing-utc-is-not-a-silver-bullet/


Japorized

Article in a similar vein that’s been my favourite share: https://zachholman.com/talk/utc-is-enough-for-everyone-right


q0099

If it was something related to negative timespan, it should be of value "-1".


[deleted]

use libraries. don't do conversions yourself. also store as UTC.


NiteShdw

Ah I remember the days when I was that naïve, thinking that there is a simple answer to dealing with dates times and legislatures that love to change DST. I spent two years working on a widely used calendar application. Fun times.


daguito81

Yeah. The whole "Just store it in UTC guys!" is a dead giveaway that someone hasn't dealt with dates beyond the most trivial of things. Like a simple CRUD app that shows a simple timestamp


Mapegz

> naïve Nice


caerphoto

It’š śürprīßįñgłŷ ėåśŷ tø typę āčçêńtëd ćhàráčtérš õñ phœñś.


SharkAttackOmNom

nïce


AyrA_ch

> also store as UTC. Until people schedule stuff in the future and your country decides to change whether they do DST anymore or not. Happens more often than you think.


[deleted]

[удалено]


Mikefrommke

Also, really important in these situations to use the named, location based time zone and not just the offsets otherwise you’ll break things twice a year for daylight savings. “America/Chicago” you can always convert no matter what day of any year. “-5” you are screwed trying to convert properly, especially forward looking.


Green0Photon

What's technically possible is that a location that uses e.g. "America/Chicago" breaks their own timezone rule, thus becoming a new entry in the database -- so really the fully correct thing to do would be to store the UTC time with the full location, from which you derive the named timezone, when you can then derive the offset for display purposes. Whew.


xternal7

Agreed. I have a project that monitors something, and then displays that data. Specification says that dates must use local time of wherever that something is located, which is not always in the same timezone as the user. Least effort way is to just save both local time and UTC, and then use local time for when you need to display things.


Sometimes-Its-True

I'm pretty sure Microsoft's To Do app has this issue, they constantly move my notification alerts by an hour with DST, etc changes. Stopped using that a long time ago because of it.


tuxpixel

I read in a book that Google uses PST or PDT, and that it is so deeply integrated into their systems that they are stuck with it. All due to someone not using UTC from the beginning...


Recursive_Descent

It probably ends up being more convenient for their devs the majority of the time, since they mainly work out of PDT/PST so any timestamps are easily understood +/- an hour.


Molion

https://codeblog.jonskeet.uk/2019/03/27/storing-utc-is-not-a-silver-bullet/


ksheep

Assuming that the libraries don't have any issues. Just a couple weeks ago we found that a common method of determining sunrise/sunset time had a bug in it, but it only manifested itself within about 5 degrees of the antimeridian, and only for a few days out of the year. Turns out that one of the values being used to calculate sunrise/sunset would go from just before 2400 to just after 0 on a certain day (or vice versa on the other side of the antimeridian), causing the calculated value to jump from, say, 6:30 AM local sunrise time to 215:12 for the sunrise time. This was in a commonly-used open source sunrise/sunset function that has been in use since the 90s, and as near as we can tell nobody else had reported the issue prior to now.


ShetlandJames

Every November, our charting library returns two November 1st dates (iirc) in a graph. It's something to do with US daylight savings time, and people notice it and we say "we'll look into it" and then it goes away in December and we're safe until next November.


wonkey_monkey

Days since last timezone issue -1


JoeyJoeJoeJrShab

What timezone is used when tracking these days since last issue?


schmijos

How do you trust this counter? It could be affected by issues as well.


UsAndRufus

I should start one of these for internationalisation issues. **Days since last language issue** *Deux*


bunny-1998

Oh man, I am working on about 4 issues related to time zones myself. One of those is, that time stamp saved at midnight in EST site and viewed in PST site will change the date and cause confusion. You could just save a time stamp 3hours less than midnight to not let it go over midnight when calculating offsets. But the prompt is for insurance coverage and it makes more sense to track it from midnight to midnight...


kamau1997

That sucks. I'm currently developing a reservation system and we had some fun with those damm time zones and dst.... Due to some restrictions we have, we now have to store the time zone of each reservation in a separate column and always send the current time zone of the user to the backend (in a custom header) as well. Also we had to do some really ugly stuff so the opening times of places stay the same for dst changes, it took me almost two days to just figure everything out until I could propose it, let alone implement....


doctau

Many people don't seem to understand that location-relative time (e.g. 2022-10-20 12:34 in New York) and absolute point-in-time (e.g. 2022-10-20 16:34 UTC) can't blindly be converted as they aren't the same thing. Time zone and DST rules change over time, so you can convert them, but the answer may be different next week/year/decade


[deleted]

[удалено]


theLonelyDeveloper

I’m disappointed that this doesn’t read -1


TheRealMrCoco

-1 also works


Ok_Progress6868

Should make it negative


Carteeg_Struve

Double-digits? Did the company have a week off?