External Feed Block Incorrect Timestamp
Bug #1437088 reported by
Bernard Neary
This bug report is a duplicate of:
Bug #548311: Support for Time Zones of users in Mahara.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
New
|
Undecided
|
Unassigned |
Bug Description
Version: 15.04rc1
On a new page add an External feed. Timestamp displayed on Mahara does not match timestamp displayed on RSS feed page.
Seems to be incorrect by 13 hours - I can't find a user timezone setting ; I'm in GMT.
Examples:
Timestamp for item 1 should be 27 March 2015 00:03. Mahara displays 27 March 2015, 1:03 PM
Timestamp for item 2 should be 26 March 2015 23:59. Mahara displays 27 March 2015, 12:59 PM
Changed in mahara: | |
status: | Incomplete → Triaged |
status: | Triaged → New |
To post a comment you must log in.
Hi Bernard,
The external feed extracts the date from the feed using getDate() in htdocs/ lib/pear/ XML/Feed/ Parser/ Type.php
in Mahara, and that in turn uses the strtotime() function in PHP.
Part of the documentation for that function says: "Each parameter of this function uses the default time zone unless a time zone is specified in that parameter."
So the things we'll need to know to test this is
1) The URL of the feed used
2) What timezone is your PHP/Database operating in?
Cheers
Robert