mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #19265
[Bug 1326622] Re: Date shows 1970 on journal entries added to page
Hi Shane,
Well, "1 Jan 1970" is actually a pretty common date to see in error
situations, because Mahara uses the "Unix date" format, in which dates
are stored as the number of seconds from 1 Jan 1970. So, you see the 1
Jan 1970 date show up if for some reason a date is missing (i.e. it's "0
seconds" from 1 Jan 1970).
I was unable to replicate the problem that you're describing. I tried it
with both a clean install and an upgrade from Mahara 1.1, but in both
cases I saw proper dates rather than 1 Jan 1970.
Here's what I did:
1. Clean install of Mahara 1.8.1
2. Log in as admin user
3. Go to Content -> Journal and create a few journal entries
4. Go to Portfolio -> Pages, create a page, put a "Journal" block onto the page, selecting the journal I'd written entries for.
5. Go to "Display page".
6. The date for the journal entries displays properly as today's date.
7. Share the page with the public.
8. Log out and view the page as an anonymous user.
9. The date still displays properly.
I repeated this test with an upgrade from Mahara 1.1 as well: Installing
Mahara 1.1, create a few blog entries, create a page, put a blog block
on the page, and then upgrade the site to Mahara 1.8.1. I still saw the
proper dates.
Are you doing something different from what I've described?
Cheers,
Aaron
** Changed in: mahara
Milestone: None => 1.8.4
** Changed in: mahara
Status: New => Incomplete
** Changed in: mahara
Importance: Undecided => High
--
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/1326622
Title:
Date shows 1970 on journal entries added to page
Status in Mahara ePortfolio:
Incomplete
Bug description:
Mahara 1.8.1
Hi All,
I just noticed something REALLY weird.... When you add an entire journal to a page - every entry shows wrong date/time with 1970 as the year!
"Posted by Shane Nuessler on 01 January 1970, 10:33 AM | Comments (0)"
Adding entries individually shows the correct date/time:
"Posted by Shane Nuessler on 05 June 2014, 1:34 PM | Comments (0)"
Cheers,
Shane.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1326622/+subscriptions
References