I have a controller to get all contacts where the last modified date is greater than or equal to the supplied date.
[HttpGet("LastModified/{lastModified:datetime}")]
This controller works if you submit a UTC date where the time zone is a negative (ie: Eastern Daylight Time is UTC-4). For example, this call successfully returns data (as expected):
/Contacts/LastModified/2020-04-06T08:00:00-04:00
The same controller fails with a "not found" response if the UTC date has a time zone in the positive (ie: Central European Summer Time is UTC+2). For example, this call fails:
/Contacts/LastModified/2020-04-06T08:00:00+02:00
Why does the +
in the date cause a 404 not found? And what is the correct way to accept UTC dates?
(FYI: I even tried replacing the +
in the URL with a %2B
during testing, but it didn't work)