this post was submitted on 29 Feb 2024
94 points (97.0% liked)

World News

39023 readers
2347 users here now

A community for discussing events around the World

Rules:

Similarly, if you see posts along these lines, do not engage. Report them, block them, and live a happier life than they do. We see too many slapfights that boil down to "Mom! He's bugging me!" and "I'm not touching you!" Going forward, slapfights will result in removed comments and temp bans to cool off.

We ask that the users report any comment or post that violate the rules, to use critical thinking when reading, posting or commenting. Users that post off-topic spam, advocate violence, have multiple comments or posts removed, weaponize reports or violate the code of conduct will be banned.

All posts and comments will be reviewed on a case-by-case basis. This means that some content that violates the rules may be allowed, while other content that does not violate the rules may be removed. The moderators retain the right to remove any content and ban users.


Lemmy World Partners

News [email protected]

Politics [email protected]

World Politics [email protected]


Recommendations

For Firefox users, there is media bias / propaganda / fact check plugin.

https://addons.mozilla.org/en-US/firefox/addon/media-bias-fact-check/

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

Someone wrote their own date library.

[–] [email protected] 15 points 8 months ago

Never write your own date library

[–] [email protected] 5 points 8 months ago

I was thinking to myself that this system MUST be less than 4 years old or it would have happened last February 29.

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

I hit a similar bug today where I had used

SYSDATE - NUMTOYMINTERVAL(2, 'year')

in Oracle. I don't remember why I didn't use sysdate - 2*365 instead, which works without problems for my use case (I don't care about one day more or less). But I would have appreciated if the compiler or the IDE would have yelled at me.

[–] [email protected] 2 points 8 months ago