apluslms / a-plus

A+ frontend portal - A+ LMS documentation:
https://apluslms.github.io/
Other
66 stars 73 forks source link

Make deadline extensions consider daylight savings time #1346

Closed ihalaij1 closed 5 months ago

ihalaij1 commented 7 months ago

Description

What?

For example, if a teacher gives a 7-day extension to a Wed 6pm deadline from late October to early November, the student will be able to submit until Wed 6pm the following week instead of 5pm, like previously.

Testing

Tested that the deviations work as expected using a docker image ihalaij1/run-aplus-front:faketime that allows changing of the internal time.

docker-compose.yml:

plus:
  image: ihalaij1/run-aplus-front:faketime
  environment:
    FAKETIME: "@2023-10-29 03:55:00"

Fixes #1287