Adventures in Time: Debugging a Daylight Saving Bug

10-Mar-2023 687
What’s more fun than bugs? Bugs involving time! And none are so fascinating as bugs involving daylight saving time.With Daylight saving time almost upon us again, I thought it would be fun to revisit this bug my team and I stumbled across last fall.Once upon a time…When subscribing a customer to a monthly plan in our billing system, we calculate the date of the customer’s next bill by adding 30 days to their current time, and using that to create a subscription on Stripe.However, at some point in October, we started to see this fail:.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle