next dev timezone
Answered
Havana posted this in #help-forum
HavanaOP
Is there a way to force next dev to run in UTC? When I use date-fns in server actions some of them are using my system time, it would be nice if I could set the dev server to be in UTC so it would calculate the same locally and in prod. I have been temporarily changing my system time to UTC, and pulling up the project on another device on the network as a workaround just inconvenient...
2 Replies
@joulev try `TZ=UTC next dev`
HavanaOP
Thanks @joulev! I really thought I had tried this earlier without success but it totally worked this time, appreciate the help!