All posts

Why you shouldn’t use LocalDateTime (to avoid production issues)

On one unfortunate day, the alert is fired – there is a difference between data in two systems that should be in sync. You checked all the code that might be related, and everything looks good. However, the data timestamps are indeed different. Or some users complain about incorrect history records order. Again, the code looks fine, and only some users are affected. Or maybe after some server maintenance, your data doesn’t look like the day before. You didn’t touch the code, and there are no changes in the database, but the system returns different results. What do all these cases have in common?