How to store TimeZoneInfo objects in a database?

后端 未结 4 1200
旧巷少年郎
旧巷少年郎 2021-02-13 07:02

Somewhat misleading title, I know. Never actually wanted to store TimeZoneInfo object themselves: rather, I want to store some culture-neutral identifier, which can

4条回答
  •  深忆病人
    2021-02-13 07:22

    I don't see an issue with storing the IDs, as they appear to be a constant value across the windows platform - that is, a specific ID will always map to the same TimeZoneInfo object, regardless of which version of windows you use.

    I am not sure what mono does, but I would not be surprised if this would be the same. You can always check the class source code.

提交回复
热议问题