FlutterCountdownTimer icon indicating copy to clipboard operation
FlutterCountdownTimer copied to clipboard

Time in specific timezone

Open dimityrivanov opened this issue 3 years ago • 1 comments

Hello I would like to propose a change to the library inside the file countdown_timer_controller.dart

int remainingTimeStamp = (_endTime - DateTime.now().millisecondsSinceEpoch) ~/ 1000;

I am making a app that should countdown time before a key is available in specific timezone but the problem is that whatever I do DateTime.now() will always use the current timezone of the user.

This line should be changed with optional parameter of specific timezone to be passed so the time is timezone agnostic

dimityrivanov avatar Jun 22 '22 06:06 dimityrivanov

OK, I will try to open the current time to get parameters.

wuweijian1997 avatar Jun 22 '22 06:06 wuweijian1997