mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #44814
[Bug 1723784] A change has been merged
Reviewed: https://reviews.mahara.org/8144
Committed: https://git.mahara.org/mahara/mahara/commit/9dd5c16d39e32392a415cbc8bdfc728231f5ff96
Submitter: Robert Lyon (robertl@xxxxxxxxxxxxxxx)
Branch: master
commit 9dd5c16d39e32392a415cbc8bdfc728231f5ff96
Author: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Date: Mon Oct 16 08:10:40 2017 +1300
Bug 1723784: Fixing 'Last login' date to display in correct timezone
As elasticsearch records dates in UTC milliseconds
behatnotneeded
Change-Id: I98f1a92c2cccd795e5009cf334530aa0eecc28ba
Signed-off-by: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
--
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:
Fix Committed
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