Esri / data-collection-dotnet

Data collection application built using the .NET Runtime SDK.
https://developers.arcgis.com/
Apache License 2.0
23 stars 30 forks source link

UWP: Remove time component when saving date fields #70

Closed nCastle1 closed 3 years ago

nCastle1 commented 4 years ago

On WPF, the calendar date picker control sets a date, with the time set to 12:00:00AM. The UWP version sets a date and uses the current system time as the time value.

UWP should be updated to match the WPF behavior - default rather than system time.

The ideal would be to set a date with an explicitly null time, but that is not currently an option.

nCastle1 commented 4 years ago

Note: this behavior is slightly inconsistent between platforms; it looks like by default iOS sets the time to the current time; needs more investigation.

nCastle1 commented 3 years ago

Closing this issue. The underlying data source combines the date and time field, so this issue isn't valid. A recent change enables the user to specify date and time explicitly in the local time zone on both UWP and WPF. That matches the behavior on iOS and Android.