0

How to handle various time zone users in a MVC application if they want to have data operations in their own time zone?

Server hosted in Oregon and working in UTC Time zone.

I need to have user time zone in their registration.

  • ask them for their preferred time zone, and then use it? Your question is very vague...what precise difficulty are you facing? – ADyson May 23 '18 at 10:40
  • Save timezone offset as well with UTC time. – Rajat Jaiswal May 23 '18 at 10:46
  • you don't save it with the time, you save it as a per-user preference, and use that when _displaying_ the data. You store all your times in UTC so they are consistent, and then just use the desired offset to change how it gets displayed to the user. – ADyson May 23 '18 at 10:47
  • Yeah I got it through this link https://stackoverflow.com/questions/7577389/how-to-elegantly-deal-with-timezones – Lakshmi Narasimhan R May 23 '18 at 10:54

0 Answers0