srawlins / timezone

Time zone database and time zone aware DateTime object for Dart.
BSD 2-Clause "Simplified" License
102 stars 53 forks source link

timezone has one hour delay #111

Closed mariamalbarghouti closed 1 year ago

mariamalbarghouti commented 3 years ago

i am use timezone library, the year, month, day, and minute is accurate, but the hour have an hour delay.

void _fun() {
    final tz.TZDateTime now = tz.TZDateTime.now(tz.local);
    print("tz.local: ${tz.local}");
    print("now.year ${now.year}");
    print("now.month ${now.month}");
    print("now.day ${now.day}");
    print("now.hour ${now.hour}");
    print("now.minute ${now.minute}");
  } 
srawlins commented 1 year ago

Please give a full reproduction. No one cannot debug this with the information given.