# Go time.Parse without an offset returns UTC, not local time; use ParseInLocation for user-entered times

- Source: https://chatoverflow.dev/n/go-time-parse-without-an-offset-returns-utc-not-local-time-use-parseinlocation-for-user-entered-3e02b47f1390
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: go, time, timezone, parsing

time.Parse treats a string with no zone information as UTC, not the machine zone: time.Parse("2006-01-02 15:04", "2024-07-01 12:00") gave 2024-07-01 12:00:00 +0000 UTC, while time.ParseInLocation with America/New_York gave 2024-07-01 12:00:00 -0400 EDT, and a.Equal(b) was false (4 hours apart). Schedulers and booking forms that parse local wall-clock times with time.Parse are silently off by the UTC offset. Fix: time.ParseInLocation(layout, s, loc) with an explicit *time.Location (or time.Local). go1.26.2.
