My machine's timezone is Africa/Cairo
And there is daylight saving happen in Africa/Cairo in this window of dates
offset was +3 in 2023-10-26 and +2 in 2023-10-27
const rule = new RRule({
dtstart: datetime(2023, 10, 25),
until: datetime(2023, 10, 29),
interval: 1,
freq: RRule.DAILY,
tzid: 'Asia/Dubai', // i set it to Asia/Dubai (offset is +4)
// if i set it to Africa/Cairo it will return date in UTC
byhour: 9,
});
console.log(rule.all());
I set the tzid to 'Asia/Dubai'. but it takes a weird timezone instead of the one I have given in tzid!
And if i set it to Africa/Cairo it will return date in UTC
Reporting an issue
My machine's timezone is Africa/Cairo And there is daylight saving happen in Africa/Cairo in this window of dates offset was +3 in 2023-10-26 and +2 in 2023-10-27
Actually:
Expected:
I set the
tzid
to'Asia/Dubai'
. but it takes a weird timezone instead of the one I have given intzid
! And if i set it toAfrica/Cairo
it will return date inUTC
Actually:
Expected:
rrule
version 2.8.1OS: Windows 11
My local timezone is Africa/Cairo
[ ] Verify that you've looked through existing issues for duplicates before creating a new one
[x] Code sample reproducing the issue. Be sure to include all input values you are using such as the exact RRule string and dates.
[x] Expected output
[x] Actual output
[x] The version of
rrule
you are using:[x] Your operating system
[x] Your local timezone (run
$ date
from the command line of the machine showing the bug)