Using the batch enrollment to load some historical completion data from our ERP the completion date is one day less than the date in the JSON. Any ideas why this happens?
I am using the API call - POST /learn/v1/enrollment/batch
Using the batch enrollment to load some historical completion data from our ERP the completion date is one day less than the date in the JSON. Any ideas why this happens?
I am using the API call - POST /learn/v1/enrollment/batch
Sounds like a time zone issue...make sure yours and your system time zones are the same to see if that helps.
We are on Eastern Standard Time, but when I change the Docebo system time zone to Italy, the dates are loaded as expected. Not sure I understand why, but as a work around your suggestion to check the system time zone was very helpful. Thanks.
I believe Docebo has their servers on GMT time so if when they use midnight their local time as the time of the event, it would logically add a day when viewed in your time zone...Still odd though since we do not se this same behaviour when using the LMS itself. A good note to make though. Thx
Hi
So your date should look like this (depends on the LMS date format you have in place; you might need to change it from this example.
We use YYYY-MM-DD, therefore, the input looks like: 2022-04-29 10:00:00
Time time time! Always annoying and will get ya when dealing with things around midnight and time zones. Be careful with being exactly at 4 hours the day prior as when daylight savings changes it will shift to minus 5. In a perfect world if programming this look for some sort of time library to convert everything to the same (either to yours or to UTC) for you so that you do not need to think about it.
yup, this is why we are using 10 AM although we’re in the Eastern time zone. It covers the whole country nicely.
yup, this is why we are using 10 AM although we’re in the Eastern time zone. It covers the whole country nicely.
Agreed, usually do the same if the time doesn’t matter, but in some cases it needs to be accurate, so becomes an issue. Hate time!
Enter your email address or username and password below to log in to Docebo Community. No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.