mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #44611
[Bug 1723784] Re: Incorrect time for 'Last login' in User activity report
** Description changed:
Because elasticsearch records dates/times as UTC milliseconds we need to
convert it back to the correct timezone offset before displaying the
- date
+ 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
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1723784
Title:
Incorrect time for 'Last login' in User activity report
Status in Mahara:
In Progress
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1723784/+subscriptions
References