0

Can I retrieve (without an internet connection) the correct TimeZoneInfo if I know only my DateTime and the GPS coordinates of my position?

Anthony
  • 12,177
  • 9
  • 69
  • 105

2 Answers2

0

You will need some thrid-party geolocation library to look up

Andrey
  • 20,487
  • 26
  • 108
  • 176
0

A DateTime pulled from the device OS (or via system clock) won't be of much use, regardless of whether it is set local time or to GMT, if you plan to support users moving the device between timezones.

So, to use the GPS coordinates see this thread for suggestions: algorithm for getting time zone from geo coordinates.

Community
  • 1
  • 1
Dwight Gunning
  • 2,485
  • 25
  • 39