Why this is not a global holiday? Let's all come together and agree to do nothing on this bonus day. Calendar Problems solved.
We should get it off work. We aren't getting paid for the extra day of work right?
Ask HN: Did you encounter any leap year bugs today?
471–480 of 498 posts
Re: Ask HN: Did you encounter any leap year bugs today?
#472Earlier quoted context omitted.
Both Feb 28 and Mar 1 are commonly used to celebrate birthdays. AFAIK there is no firm convention. Feb is more natural ("My birthday is in February"), Mar is more logical (the 60th days of the year).
Is March more logical? Feb 29 + 1 year = Feb 28.
Re: Ask HN: Did you encounter any leap year bugs today?
#473Unless you're in your 70's, YouTube doesn't allow you to buy premium if you were born on a leap year, because their age calculation is broken, and it thinks you're under 18. Google One works fine. Support will suggest that you change the birthday on your Google account, which breaks account recovery processes that depend on you furnishing matching identity documentation. Mind-boggling. Because nobody at YouTube has a…
I know you're on iPhone which limits your choices but I'll mention this here anyway, could be useful to someone. Firefox has an addon[1] to fix that. It's very simple and basically just disables the events that tells the page you've switched tabs, and for Youtube hits sends a random keyboard event every N seconds.
I've used it for years and it's great. I can't imagine paying Google of all companies for a feature like that.
[1]: https://addons.mozilla.org/en-US/firefox/addon/video-backgro...
Re: Ask HN: Did you encounter any leap year bugs today?
#474Re: Ask HN: Did you encounter any leap year bugs today?
#475Earlier quoted context omitted.
But also it doesn't see characters. It sees tokens. The only way it would be reliably able to solve it is if it had a lookup table of token to characters. Which it likely doesn't. You couldn't do it either unless you learned the exact matchings of all tokens to all characters in that token and their positions if you were given tokens as an input. You would have learned the meaning of the token, but not what the exact…
Even if it sees tokens, I don't think it's an impossible task. Certainly an advanced enough LLM should be able to decipher token meanings, to know that a word is made up of the individual character tokens regardless of how the full word is tokenized. Maybe something gpt5 can do (or there's some real technical limitation which I don't understand)
Re: Ask HN: Did you encounter any leap year bugs today?
#476Earlier quoted context omitted.
I think what of is getting at is that given {the:1, t: 2, h:3, e:4} There should be somewhere in the corpus, "the is spelled t h e" that this system can use to pull this out. We can ask gpt to spell out individual words in NATO phonetic and see how it does.
> There should be somewhere in the corpus, "the is spelled t h e" that this system can use to pull this out. Such an approach would require an enormous table, containing all written words, including first and last names, and would still fail for made up words. A more tractable approach would be to give it the map between the individual tokens and their letter component, but then you have the problem that this matchin…
Re: Ask HN: Did you encounter any leap year bugs today?
#477Earlier quoted context omitted.
Is March more logical? Feb 29 + 1 year = Feb 28.
I asked JavaScript: const { format } = Intl.DateTimeFormat("en-UK", { month: "short", day: "numeric" }); const date = new Date(2024, 1, 29); console.log(format(date)); // 29 Feb date.setYear(2025); console.log(format(date)); // 1 Mar const year = 1000 * 60 * 60 * 24 * 365.2425; console.log(format(new Date(2024, 1, 29).getTime() + year)); // 28 Feb I guess both are logical by some definition of logic.
Re: Ask HN: Did you encounter any leap year bugs today?
#478Re: Ask HN: Did you encounter any leap year bugs today?
#479Earlier quoted context omitted.
Think of it this way: if Feb 29 didn't exist that year, it would have been March 1. If we're being scientific I guess all of us should move our birthday up by 1 day on leap years, but that seems annoying and not sure anyone really cares enough to.
No we should move our birthday celebration up by 6 hours every year. But that would be only relevant if we were celebrating at the exact hour of our birth.