EF - Save datetime with specific timezone in DB but read it as UTC

entity-framework entity-framework-6

Accepted Answer

Quick response: No.

The values are only moved back and forth by EF.

Simply storing UTC values in the database is a suggestion. Store the original timezone as well if you need to retrieve the original timezone (but note the common timezone abbreviations are often ambiguous).

In general, dates and times are difficult to handle, but most systems just assume a single location and disregard the problems.

3
6/24/2016 10:14:02 AM

Popular Answer

ZZZ_tmp


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow