2 ms·
This works correctly if your locale includes the PST timezone (works fine on my computer). They should probably have a better example though.
by nulltype 11y ago
This works correctly if your locale includes the PST timezone (works fine on my computer). They should probably have a better example though.
- paradite 11y agoBy "works fine" you mean in your local environment or the go playground? Because it could potentially cause problems if the execution result varies from geographical locations and user's environment. I for one have no idea if my computer has a locale that includes PST timezone.
- nulltype 11y agoSorry I meant in my local environment. It's clear that the execution varies, as Parse(), unlike ParseInLocation() depends on the local environment, and play.golang.org probably uses some UTC locale.