'Setting time zone in Moment?
I have a problem when deploying my app to GCP because it relies heavily on time zone NOW() but sometimes its using a different time zone than my local dev env. Is it possible to set time zone to LOS angeles so no matter where its deployed that it will use that time zone?
moment().tz('America/Los_Angeles')
let endTime = moment(new Date(filteredTimeLeft)).unix();
const convertSec = Number(coin.seconds);
const calcTime = endTime - convertSec - moment().unix();
something like this? does this make sense? thanks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
