I am saving the Time Zone as 'Default[(UTC+05:30)Chennai, Kolkata, Mumbai, New Delhi]'. As the exact conversion of UTC to Local time is happening in client side (js).
While exporting the DateTime to an excel, I write the coding in appService itself. Due to time conversion is not happening in appService, I am getting the UTC time without converting to my time zone.
I have given date.tolocaltime();
for conversion while running in local source conversion is happening, but the conversion is not happening after hosting the application.
I have hosted my application on the cloud server (Azure)
CASE:
- DateTime saved in DB - '2018-03-01 19:11:34.000'
- Actual Date - '02-03-2018 00:43:22' (dd-mm-yyyy)
- Showing Exported Date as - '2018-03-01'