Incorrect time for 'Last login' in User activity report
Bug #1723784 reported by
Robert Lyon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Robert Lyon |
Bug Description
Because elasticsearch records dates/times as UTC milliseconds we need to convert it back to the correct timezone offset before displaying the date.
Eg, elasticsearch returns for login: 15081408020000
so we need to divide by 1000
then find our timezone's offset, eg 46800
then add/subtract that depending if offset is positive or negative
So: 16 October 2017, 21:00 pm
Becomes: 16 October 2017, 08:00 am
description: | updated |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
https:/ /reviews. mahara. org/#/c/ 8144