Base solution for your next web application

Activities of "itbmo"

Any example converting user entered datetime to UTC at client side ? I know we need to use moment and abp.timing.timeZoneInfo , can anyone send the exact way of converting datetime to UTC ?

Sorry in previous message i was wrong, actually even on app service, it doesn't convert the time to UTC by default, just saves the same time which user selects from view, so if user has different timezone, the date should be converted to UTC automatically but that's not working, do we need to configure something in app service start up as well ? And there is one more issue in controller the date is giving error when we try "31/08/2017" , the same date giving no error in app service.

Ok it works as you explained for application service, how about controller ? Sometimes we will have to post form to controller as well, that doesn't work same as application service. For example we are facing issue with "31/08/2017" date, in converts to utc and working proper in application service but in controller it says the date is not correct, obviously we have dd/mm/yyyy date in selected culture.

Ok so we have Clock.Provider = ClockProviders.Utc; in startup and it allows tenants/user to have different timezone. My question is how we pass datetime form view to application service, for example if there is an appointment module and user selects particular datetime , Abp will automatically converts datetime to utc at the time of db entry/update ? Or we need to convert the datetime to utc in view and send that to application service ?

Exactly what i was looking for, thanks for the reply and solution.

Is it possible to create entity without Id column ? How ?

Basically we have an entity with composite key and the records are deleted and entered frequently, that means if we have identity primary key the key values will be increased drastically on frequent add/delete records. So we do not want any identity primary key for that entity, just composite key as a primary key.

Showing 1 to 6 of 6 entries