| ▲ | CodesInChaos 3 hours ago | |
That can easily lead to breaking tests due to time-zones, daylight saving time or the variable length of months. We experienced several of those over the years, and generally it was the test that was wrong, not the code it was testing. For example, this simplified test hits several of those pitfalls: | ||