-
Bug
-
Resolution: Done
-
Minor
-
4.0.2
-
-
MOODLE_400_STABLE
-
MOODLE_401_STABLE
-
Moodle App 4.1.0
There is a couple of time utils that are not working properly with dates.
For example, the method toDatetimeFormat returns a user date in the local timezone with a "Z" appended at the end. That is not correct because "Z" means UTC+0, so any user outside of this timezone would be generating an incorrect date string.
As far as I could tell, this is not a problem for users at the moment because conversely the convertToTimestamp method incorrectly substracts the local timezone offset of the current user (whereas date strings ending in Z are already using UTC+0).
This may cause more issues down the line, and right now this required a fix adding display-timezone="utc" in ion-datetime components in order to avoid users seeing an incorrect date. Once this problem is fixed, ion-datetime should be reverted to using the default timezone (which is the user's locale).
- Discovered while testing
-
MOBILE-4131 Invalid date when create calendar event in some languages
-
- Closed
-
- duplicates
-
MOBILE-4169 Sometimes when you add a new user event on calendar instead of showing 'now' as a Date, it is 'now' minus two hours
-
- Closed
-