I have dateTimeAuth column in sql table of datatype datetime and its default value is (getdate()) which returns me current time if i run my project at offline mode. When i u
getdate() will always return the date and time where the server is located. If you want the date and time from your user's timezone, you need to send the date from the application and insert it as a regular dateTime variable
but if you are on SQL 2008, you can use
SELECT SYSDATETIMEOFFSET()
to get the date on your timezone. You can also add dates to it (+5:30 from UTC = IST)
SELECT SWITCHOFFSET(SYSDATETIMEOFFSET(), '+05:30')