Adventures in Time: Debugging a Daylight Saving Bug
10-Mar-2023 788
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:.
Adventures in Time: Debugging a Daylight Saving Bug #ruby #rubydeveloper #rubyonrails #Adventures #Time: #Debugging #Daylight #Saving #bug https://rubyonrails.ba/link/adventures-in-time-debugging-a-daylight-saving-bug