> I want to change Local because I want all JSON encoding to be normalized to UTC and not local time - there does not seem to be a way to do this (please let me know if I am missing something).
Yes, you are missing something. This is very easy. Do not change Local. Just use the In() method on any time.Time. Pass it the *time.Location constant for the place you want. For UTC, simply use time.UTC currentTimeInUTC := time.Now().In(time.UTC) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/04105bef-08be-4c0b-979f-b84b6e0c51c7o%40googlegroups.com.
