When I pass a date time object (via serialization) to the server web service, it converts it to have an offset that matches the servers time. Is there a way to force it to just keep the local time
as it's being converted. I don't care about the time zones, I just care about the clients local time and their time only. The client uploads a file and the database stores their local machine time with it,
not the servers. The servers machine time will NEVER matter in this solution. So if it's 7 PM EST I don't want it being sent then converted to 4 PM PST when the web service reads it.
Once the scanner is in place it will quickly be expanded to check for pictures of "racist memes", "disinformation graphics", "terrorist material" such as Palestinian flag photos, "memes defaming politicians" and anything else they want.
Question
sathenzar
When I pass a date time object (via serialization) to the server web service, it converts it to have an offset that matches the servers time. Is there a way to force it to just keep the local time
as it's being converted. I don't care about the time zones, I just care about the clients local time and their time only. The client uploads a file and the database stores their local machine time with it,
not the servers. The servers machine time will NEVER matter in this solution. So if it's 7 PM EST I don't want it being sent then converted to 4 PM PST when the web service reads it.
Link to comment
https://www.neowin.net/forum/topic/1068152-c-datetime-changes-when-passed-to-a-web-service/Share on other sites
5 answers to this question
Recommended Posts