date_time_picker icon indicating copy to clipboard operation
date_time_picker copied to clipboard

Time format not changing from AM to PM

Open BenFredjSkander opened this issue 3 years ago • 4 comments

I'm using this config DateTimePicker( type: DateTimePickerType.dateTime, dateMask: 'd MMMM, yyyy - hh:mm a', controller: _controller2, firstDate: DateTime(2000), lastDate: DateTime(2100), dateLabelText: 'Date Time', use24HourFormat: false, locale: Locale('en', 'US'), ), when i set the time to 9:00AM and i want to change it to 9:00PM it's not working it still AM

BenFredjSkander avatar Sep 04 '21 12:09 BenFredjSkander

I'm having the same issue

lozdan avatar Sep 18 '21 04:09 lozdan

It's on 2.1.0 not able to change AM to PM

junedr375 avatar Sep 21 '21 11:09 junedr375

I've confirmed this as a regression from 2.0.0 to 2.1.0. It works fine in 2.0.0.

WARNING: It is easy to miss this problem in tests! Be very careful when upgrading to 2.1.0. I don't know what conditions must be present to cause this bug to materialize.

James-A-White avatar Oct 04 '21 20:10 James-A-White

I believe the _sPeriod is not recognized in line 809 if type is DateTimePickerType.dateTimeSeparate and using 12hr format.

confirmed in 2.1.0

basilmariano avatar Nov 18 '21 08:11 basilmariano