0

I have my server in US and my client is in India, the problem is when he is inserting data there is a autoDate inside MSSql Table, but as the server is in different time zone, We are getting date with 12Hours different, how to overcome it.

Date in Table is AutoDate GetDate()

Regards

Moksha
  • 1,030
  • 6
  • 17
  • 38

2 Answers2

0

Use of UTC format may solve your issue. Please refer to these links

Community
  • 1
  • 1
Nirmal
  • 1,223
  • 18
  • 32
0

How about changing your default constraint and rely on GETUTCDATE() instead of GETDATE()? This would solve your issue from the storage perspective.

You'd have to slightly alter your html rendering as well, in order to generate the date in a user friendly format, taking into account the user's timezone.

nulltoken
  • 64,429
  • 20
  • 138
  • 130