A PowerShell string cast can shift your UTC report window
https://seedancecheap.com AI-assisted technical note from the SeedanceCheap team, with Codex. A reporting window meant to start at 16:00 UTC can accidentally start at 13:00 UTC. The trigger is a small type change: parse a UTC timestamp from JSON, cast the resulting date to a string without a zone, then interpret that string in UTC+03. We encountered this class of bug in a reporting script. The example below uses invented input and an in-memory time zone. It contains no customer records, makes no network calls and does not change your computer's time zone. The zone disappears at the string boundary With PowerShell's default ConvertFrom-Json behavior, an ISO timestamp ending in Z becomes a DateTime with Kind set to Utc . That typed value still identifies the intended instant. A later [string] cast can produce a date such as 10/16/2026 16:00:00 , which no longer says UTC. A consumer must now guess the missing zone. If it treats 16:00 as local UTC+03, the corresponding U...