International Dates and Times
July 21, 2020
Every week in my Tuesday Lunch & Learn livestream, we choose a useful software development skill, define a challenge related to that skill, and solve the challenge live. This week, it’s international dates and times.
The challenge with international dates and times is that you want your users to see different results, depending on their local time zone and language. But your tests need to work consistently, regardless of the local time zone and language. In today’s episode, we write a simple application that displays the local time, and we do it in a way that continues to pass tests no matter who runs them.
To follow along, download the code from GitHub and check out the
2020-07-21 tag. To see the final result, check out the
2020-07-21-end tag or view it on GitHub.
Visit the Lunch & Learn archive for more.