-
AuthorPosts
-
November 22, 2010 at 7:07 pm #363758
I have this problem too….
steinar Friendsteinar
- Join date:
- July 2007
- Posts:
- 319
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 11
- Thanked:
- 98 times in 84 posts
November 22, 2010 at 8:26 pm #363766<em>@octostudios 204708 wrote:</em><blockquote>I have this problem too….</blockquote>
So have I. But this has nothing to do with JA Bulletin or Joomlart at all; it seems to be due to a “limitation” in Unix time, which is widely used in computer systems and counts the seconds elapsed since 1 January 1970 at midnight.
http://en.wikipedia.org/wiki/Unix_timeAs I understand it, a date based on this system set earlier than 01.01.1970 would give a negative number. This is impossible, so instead it defaults to 30 November 1999.
Which does not explain, as in my case, a couple of articles written weeks apart in the Summer of 2010 seem to have been published 30.11.1999
You will find lots of discussions on this if you search for variants of the November 99 date over at the joomla.org web site. Here is one answer given two years ago to a complaint regarding the Beez template:
Sorry, you are correct.
If an article is written new, the modified fate is set to ‘0000-00-00 00:00:00’.
Beez checks this field if empty or not.
Now, it is not empty, and the date parameter tries to format the date with ‘DATE_FORMAT_LC2’.0000-00-00 00:00:00 will result in what you see.
If the check in the default.php will be corrected, it will not show this date anymore.
Therefore, it is a bug – correct.1 user says Thank You to steinar for this useful post
zorroh Friendzorroh
- Join date:
- November 2006
- Posts:
- 422
- Downloads:
- 20
- Uploads:
- 43
- Thanks:
- 88
- Thanked:
- 80 times in 1 posts
December 8, 2010 at 1:39 pm #365805but, how to fix it now?
scotty Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
December 10, 2010 at 8:37 pm #366212A strange one indeed!
It seems JA_Bulletin checks the modified date then the created date and uses the created date. HOWEVER… if the article has never been modified then the modified date will be 0000-00-00 00:00:00. (ie. empty). This causes the Joomla/UNIX bug to kick in where it reads the date format wrong and inserts the default date of 30th November 1999.
To use the created date, regardless of whether the article has been modified or not open /modules/mod_jabulletin/help.php and find (line varies depending on which version of JA Bulletin you are using but should be aroune line 140-150)…
[PHP]$lists [$i]->date = strtotime ( $row->modified ) ? $row->created : $row->modified;[/PHP]and change to…
[PHP]$lists [$i]->date = strtotime ( $row->created ) ? $row->created : $row->modified;[/PHP]Yes, I’m no PHP guru so I’m sure the new line above does not actually make sense to those in the know but what the heck… it works :p
3 users say Thank You to scotty for this useful post
zorroh Friendzorroh
- Join date:
- November 2006
- Posts:
- 422
- Downloads:
- 20
- Uploads:
- 43
- Thanks:
- 88
- Thanked:
- 80 times in 1 posts
December 13, 2010 at 11:44 am #366545this is working for me, thanks! 🙂
December 26, 2010 at 9:07 am #368603It is working for me too, great job!
pontikoua Friendpontikoua
- Join date:
- November 2010
- Posts:
- 48
- Downloads:
- 9
- Uploads:
- 8
- Thanks:
- 15
- Thanked:
- 1 times in 1 posts
March 18, 2011 at 8:34 pm #382148worked for me too… Thanx!
hidrocar Friendhidrocar
- Join date:
- December 2010
- Posts:
- 10
- Downloads:
- 25
- Uploads:
- 2
- Thanked:
- 2 times in 1 posts
December 31, 2011 at 2:14 am #431960Just to add some feedback on this issue.
This happens when you synchronize articles between two databases.
In my case i sync articles on the jos_content table of a teline II db with the jos_content table on a teline IV db.salvomic Friendsalvomic
- Join date:
- June 2008
- Posts:
- 200
- Downloads:
- 16
- Uploads:
- 23
- Thanks:
- 24
- Thanked:
- 6 times in 1 posts
June 4, 2013 at 9:08 am #494688I get the same issue.
Is there definitely a solution?
Unplublish/publish works but it isn’t a real solution…
Please, help 🙂salvo
salvomic Friendsalvomic
- Join date:
- June 2008
- Posts:
- 200
- Downloads:
- 16
- Uploads:
- 23
- Thanks:
- 24
- Thanked:
- 6 times in 1 posts
June 4, 2013 at 9:45 am #494693<em>@salvomic 375266 wrote:</em><blockquote>I get the same issue.
Is there definitely a solution?
Unplublish/publish works but it isn’t a real solution…
Please, help 🙂salvo</blockquote>
ok, changing the line PHP works for me, but in Jabullettin 1.0.4 I’ve this original line (243)
$lists [$i]->date = strtotime ( $row->modified ) ? $row->modified : $row->created ;I wonder if there is a new version of JA Bullettin for Joomla 1.5.x with the fix, TIA!
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
June 6, 2013 at 3:01 am #494948Hi salvomic ,
Joomla 1.5 reaches the end of life and Joomla stops to support this version. Hence, I’m afraid that there is no new version of this module for Joomla 1.5.
If you have any problem, feel free to raise your question, we will try to help.
Leo
APOSTOLOS FOUKIS FriendAPOSTOLOS FOUKIS
- Join date:
- December 2008
- Posts:
- 170
- Downloads:
- 137
- Uploads:
- 36
- Thanks:
- 54
- Thanked:
- 1 times in 1 posts
December 10, 2014 at 5:06 pm #558180<em>@scotty 207839 wrote:</em><blockquote>A strange one indeed!
It seems JA_Bulletin checks the modified date then the created date and uses the created date. HOWEVER… if the article has never been modified then the modified date will be 0000-00-00 00:00:00. (ie. empty). This causes the Joomla/UNIX bug to kick in where it reads the date format wrong and inserts the default date of 30th November 1999.
To use the created date, regardless of whether the article has been modified or not open /modules/mod_jabulletin/help.php and find (line varies depending on which version of JA Bulletin you are using but should be aroune line 140-150)…
[PHP]$lists [$i]->date = strtotime ( $row->modified ) ? $row->created : $row->modified;[/PHP]and change to…
[PHP]$lists [$i]->date = strtotime ( $row->created ) ? $row->created : $row->modified;[/PHP]Yes, I’m no PHP guru so I’m sure the new line above does not actually make sense to those in the know but what the heck… it works :p</blockquote>
Hi,
I try it to a new joomla site 2.5 & ja bulletin 2.5.9 but I can’t find /modules/mod_jabulletin/help.phpWhat can I do now?
AuthorPostsThis topic contains 27 replies, has 15 voices, and was last updated by APOSTOLOS FOUKIS 9 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum