0
omital created
Hi, why all datetime fields in application service methods automatically converted to PersianDateTime and then return to client?
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
2 Answer(s)
-
0
Hi,
Abp converts a datetime to local datetime if you use LocalClockProvider as Clock.Provider. I think this is probably the your case. Can you check the value of Clock.Provider ?
You can use UtcClockProvider but in that case, all datetimes will be stored in UTC in database and will be sent to client in UTC.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
I checked it in one of the application service's method. It was {Abp.Timing.UnspecifiedClockProvider}. then I try to
Clock.Provider = new UtcClockProvider();in PreInitialize method of WebModule, EntityFramework and Core module, but nothing happen.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)