Jun 24, 2020, 12:21 AM
Specific converter for DateField serialization
Is it possible to specific a different json converter for DateField serialization? We only want to serialize the date portion of a DateTime value without accounting for user time zone. We changed DateTimeZoneHandling globally to be RoundtripKind to support conversion of UTC dates to user time zone but we don't want to do that for certain DateFields. Right now if we set a datetime for 1/1/2020, a user logging in from a different timezone may see a different date.