Closed nilsreichardt closed 1 year ago
This test fails with exception:
Expected: TZDateTime:<2019-11-24 11:00:00.000+0100> Actual: TZDateTime:<2019-11-24 11:00:00.000+0100>
import 'package:cron_parser/cron_parser.dart'; import 'package:test/test.dart'; import 'package:timezone/standalone.dart'; Future<void> main() async { await initializeTimeZone(); group('.next()', () { const timezone = "Europe/Berlin"; test('get next cron time, if matchmaking ended', () { final current = TZDateTime(getLocation(timezone), 2019, 11, 23, 13); final expected = TZDateTime(getLocation(timezone), 2019, 11, 24, 11); expect( Cron() .parse( '0 11 * * *', timezone, current, ) .next(), expected, ); }); }); }
I'm really sure if this is a bug in the cron-parser or timezone package. But looks to that this is an issue in timezone.
cron-parser
timezone
Used cron_parser version 0.3.1 and timezone version 0.7.1
cron_parser
0.3.1
0.7.1
I can't investigate issue with additional packages in the mix; we'd need a reproduction without cron_parser in the mix.
This test fails with exception:
I'm really sure if this is a bug in the
cron-parser
ortimezone
package. But looks to that this is an issue intimezone
.Used
cron_parser
version0.3.1
andtimezone
version0.7.1