Open amirlix opened 3 years ago
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/