1
sunsnapper
News: Wrong Date... Post Date vs. Publish Date?

In the News Module

If you create a News story and set the publish date to some time in the past, that date will appear correctly in the summary view of the news stories (News Index).

However, when you "read more" and view the entire article it shows the date the article was created instead of the publish date you set.

To see an example of this, compare the dates on any story here:
http://www.brilliantenergy.com/news/

In viewing the template, it seems like the "read more" complete article view is just passing through the information from the summary... I don't see where it is pulling this date from in the template. Is there a distinction between post date and publish date?

I searched the forum to see if this has been reported. I apologize if it is a duplicate.

2
onokazu
Re: News: Wrong Date... Post Date vs. Publish Date?
  • 2003/11/9 18:56

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


This has been fixed on CVS to always display the published date.

modules/news/article.php

$story['posttime'] = formatTimestamp($article->created());

to

$story['posttime'] = formatTimestamp($article->published());

3
sunsnapper
Re: News: Wrong Date... Post Date vs. Publish Date?

Thanks Onokazu. So fast, as always...

In the interim, I went into the database and copied the value for the publish date field into the post date field. That worked.

Just thought I would confirm the workaround for those who avoid downolading CVS files and are waiting for the next dot release.

Login

Who's Online

194 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 194


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits