Severity:
High
Context:
The application collects data from devices located in different sites and timezones.
Steps to Reproduce:
- Device collects data at a specific site and sends the payload with the correct collection timestamp.
- API successfully delivers the timestamp to the server.
- Server logs/store entry shows a different time (serverâs local time instead of deviceâs reported time).
Expected Result:
The system should store and display the original collection timestamp from the device.
-If server-local time must be used, it should at least be clearly labeled as “Server Time” and not replace the true collection time.
Actual Result:
The database record displays the serverâs local time instead of the actual collection time sent by the device.
-Receipts/reports generated from the system show misleading timestamps.
Impact:
- Users reviewing receipts see timestamps that donât match the real collection events.
- Audit and traceability issues (data appears âshiftedâ in time).
- Can cause serious confusion when data comes from devices in different time zones.
Suggested Fix:
- Store both values:
collection_time (from device, normalized to UTC).
server_received_time (optional, for debugging/logging). - Display collection time (with proper time zone conversion for UI).
Lesson learnt:
âWhen it comes to time, donât let the server tell the story. always trust the device that was actually there.â
Letâs connect! I share common bugs, solutions, and QA tips regularly.