cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Ehavermale1024
Community Member

Canvas SIS Import Enrollment Term Date Issue

Jump to solution

Hello, 

I am using the SIS integration and testing on the Beta side of Canvas. When I send a term from my system to Canvas the date doesn't stay the same as what I sent up.

I create a term for Start 2021-11-29T00:00:001Z and end 2022-02-01T23:59:59Z, which should start at 12:01am on Nov 29 and end on Feb 1, 2022 at 11:59pm but when the Term is imported to Canvas the date becomes Nov 28, 2021 at 5pm and ends on Feb 1, 2022 at 4:59pm. I am capturing request to the Import URL and it is coming out with the correct date: 

[enrollment_term] => Array
(
[name] => CanTermTest
[start_at] => 2021-11-29T00:00:01Z
[end_at] => 2022-02-01T23:59:59Z
[sis_term_id] => BEAL-001-CanTermTest
)

Is there a setting or something that is causing the term date to readjust away from the value I am sending it?

Labels (2)
0 Kudos
1 Solution

Accepted Solutions
chadscott
Community Contributor

Howdy,

The issue is the date is UTC, so you will need to shift the time to adjust for your timezone. Also, the time is HH:MM:SS

So for Central Standard Time of 12:01 AM, I would add 6 hours because we are 6 hours behind UTC: 2021-11-29T6:01:00Z

If you use an SIS import file to create your term, which you can do, it just needs to be loaded prior to the other files, you can include the time offset -

term example.jpg

 

 

 

Hopefully this helps!

Cheers,
Chad Scott

 

View solution in original post

2 Replies
chadscott
Community Contributor

Howdy,

The issue is the date is UTC, so you will need to shift the time to adjust for your timezone. Also, the time is HH:MM:SS

So for Central Standard Time of 12:01 AM, I would add 6 hours because we are 6 hours behind UTC: 2021-11-29T6:01:00Z

If you use an SIS import file to create your term, which you can do, it just needs to be loaded prior to the other files, you can include the time offset -

term example.jpg

 

 

 

Hopefully this helps!

Cheers,
Chad Scott

 

Hello, 

I am using the API directly not the SIS file.

When I change my logic to be 5 hours behind (EST) making the start_at parameter 2021-12-02T05:01:00Z Which should be 12 midnight on Dec 2, 2021 it shows Dec 1, 2021 @ 10:01 pm.

My default setting have the timezone set as EST already, does this not affect the API uploads only manually created data? 

Thanks for the help, 

Ernie