API Testing · Middle · Question 38 of 75
What should a test check about time zones in an API?
- 1Timestamps include an offset or use UTC consistently
- 2Timestamps are always sent as plain local dates
- 3Every timestamp uses the time zone of the server
Show the answer
Correct answer: Timestamps include an offset or use UTC consistently
Explanation
A date shown a day off for some users is a classic bug. ISO 8601 with Z or an offset removes ambiguity.