Next.js Discord

Discord Forum

next dev timezone

Answered
Havana posted this in #help-forum
Open in Discord
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...
Answered by joulev
try TZ=UTC next dev
View full answer

2 Replies