date_time_picker
date_time_picker copied to clipboard
Time format not changing from AM to PM
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
I'm having the same issue
It's on 2.1.0 not able to change AM to PM
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.
I believe the _sPeriod is not recognized in line 809 if type is DateTimePickerType.dateTimeSeparate
and using 12hr format.
confirmed in 2.1.0