You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import moment from 'moment-jalaali';
import 'moment-timezone';
moment.tz.setDefault("America/Lima");
// err: Cannot read property 'setDefault' of undefined
The text was updated successfully, but these errors were encountered:
I have a similar problem that prevents usage of "moment-timezone" functions in "moment-jalaali". if you could use "moment-timezone" instead of regular "moment" library , it would make it a lot easier to use with time zones.
temporary solution : import moment from 'moment-jalaali'; moment('2023-01-19 06:32:27').add(3.5, 'hours').format('jYYYY/jM/jD HH:mm')
you can write wrapper and use different timezone
HI . in moment-timezone have
setDefault
option for set default time-zone.How to use this with moment-jalaali ?
https://momentjs.com/timezone/docs/#/using-timezones/default-timezone/
The text was updated successfully, but these errors were encountered: