Sorry to ask this here but for some reason i am unable to register at the Zafenio forums. I am currenly using PNphpBB2 1.2i-p3 and having an issue.
All of the post on my forum for some reason are now showing that month ahead of what they were before. Any of the post that the users have made last month now show august instead of july.
I have checked my configuration and don't see anything there that would cause this. Can anyone shed some light on this for me?
Thanks for assistance.
--
"For those who believe no explanation is necessary, for those who do not, none will suffice."
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Date issue with PNphpBB2
-
- Rank: Freshman
- Registered: May 11, 2004
- Last visit: Oct 21, 2009
- Posts: 96
-
- Rank: Freshman
- Registered: Nov 30, 2003
- Last visit: May 15, 2010
- Posts: 54
Similar issue here. All posts show the same month.
I have a dirty fix, but use at your own risk. There's a high chance it will break other modules in Zikula.
Here's what I did: In your Zikula installation, find the file includes/pnLang.php
In that file,. find the function ml_ftime (around line 1300).
In that function, replace the line:
Code
with
Code
if (true) {
As I said, use at your own risk. I'd be very interested to hear any alternative (proper) solutions.
stef
-
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Sep 17, 2008
- Posts: 2
I am also experiencing this problem. I checked the timestamps in the database and they are correct, it is the display that is incorrect. I don't think it has anything to do with timezones either because the dates are 20-30+ days off.
Anyone have suggestions on how to properly fix this problem?
Thanks. -
- Rank: Freshman
- Registered: Nov 30, 2003
- Last visit: May 15, 2010
- Posts: 54
It has nothing to do with the time zones as such, but the code in ml_ftime (which pre-formats the date string) contains an IF clause:
Code
The net result is, this works as a caching mechanism for the date format string (since ml_date is declared static). Whatever month you use first, that's the one PNphpBB2 keeps using (as the cached date format string will contain that month).
So by removing the IF condition from ml_ftime, I forced ml_ftime to re-format the date string on every call.
This got rid of the issue for me, but I don;t know yet if it breaks anything else.
stef -
- Rank: Softmore
- Registered: Oct 17, 2008
- Last visit: Oct 21, 2009
- Posts: 163
marsu
Similar issue here. All posts show the same month.
I have a dirty fix, but use at your own risk. There's a high chance it will break other modules in Zikula.
Same issue, i change the "IF" and the date issue is solved,
anybody know if this code-change create any issue in zikula?
Is there an official solution?
edited by: lordevol, Nov 05, 2008 - 07:56 PM -
- Rank: Softmore
- Registered: Mar 10, 2005
- Last visit: Mar 18, 2010
- Posts: 288
viewtopic I see
/* Begin PNphpBB2 Module (Support Status Mod) */
'L_SUPPORT_TOPIC' => $lang['Support_topic'],
'L_STATUS' => '' . $lang['Status'] . '',
'S_SUPPORT_STATUS' => $support_status,
'S_SUPPORT_STARUS_ACTION' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $topic_id . "&start=$start&ssu=" . $forum_topic_data['support_status']),
'L_CURRENT_STATUS' => '' . $lang['support_status'][$forum_topic_data['support_status']] . '',
/* End PNphpBB2 Module (Support Status Mod) */
is this --> 'S_SUPPORT_STARUS_ACTION' typo? ..i mean if needs to be 'S_SUPPORT_STATUS_ACTION'? -
- Rank: Softmore
- Registered: Oct 05, 2008
- Last visit: Feb 17, 2010
- Posts: 144
marsu
Similar issue here. All posts show the same month.
I have a dirty fix, but use at your own risk. There's a high chance it will break other modules in Zikula.
Here's what I did: In your Zikula installation, find the file includes/pnLang.php
In that file,. find the function ml_ftime (around line 1300).
In that function, replace the line:
Code
with
Code
if (true) {
As I said, use at your own risk. I'd be very interested to hear any alternative (proper) solutions.
stef
worked for me tyvm -
- Rank: Moderator
- Registered: Mar 15, 2005
- Last visit: May 30, 2010
- Posts: 1077
Quote
Is there an official solution?
http://code.zikula.org/zafenio/ticket/3
This is currently, along with ticket 1, a showstopper for the release of the precursor to Zafenio 3-beta. In order for the latest release of pnPHPbb2 (-k) to be made available, these two bugs need to be fixed.
You can follow the progress of this issue here:
http://code.zikula.org/zafenio/roadmap -
- Rank: Helper
- Registered: Sep 19, 2003
- Last visit: May 25, 2010
- Posts: 611
It would be nice to see "K" fix all the issues with "I" and Zikula. One major problem is Avatars. Will this be addressed along with the the other fixes? -
- Rank: Moderator
- Registered: Mar 15, 2005
- Last visit: May 30, 2010
- Posts: 1077
Quote
I have a dirty fix, but use at your own risk. There's a high chance it will break other modules in Zikula.
Has anyone had any problems anywhere else in Zikula as a result of this? -
- Rank: Moderator
- Registered: Mar 15, 2005
- Last visit: May 30, 2010
- Posts: 1077
Quote
Has anyone had any problems anywhere else in Zikula as a result of this?
This of course worked for me but I would like to know if anyone has seen issues as a result of this?
ANYONE? -
- Rank: Team Member
- Registered: May 03, 2004
- Last visit: May 31, 2010
- Posts: 511
No issues so far. However, it is of course a dirty core hack - something we should really avoid. We better fix the problem inside Zafenio, but this is a lot of work I do not have time & motivation for ATM.
Greetings,
Chris
--
an operating system must operate
development is life
my repo -
- Rank: Moderator
- Registered: Mar 15, 2005
- Last visit: May 30, 2010
- Posts: 1077
Thanks for the explanation Chris. I understand completely about having no time :p
Have a good day, sir. -
- Rank: Registered User
- Registered: May 18, 2009
- Last visit: Oct 21, 2009
- Posts: 7
Well I tried the suggested hack above and have noticed that it broke the User and Permission module for Zikula.
Is there a way to repair this without wrecking users registration?
thx in Adv
to view
www.pics.canadianbridgejunkies.net/zikula.jpg -
- Rank: Helper
- Registered: Sep 19, 2003
- Last visit: May 25, 2010
- Posts: 611
{cbj}jim
Well I tried the suggested hack above and have noticed that it broke the User and Permission module for Zikula.
Is there a way to repair this without wrecking users registration?
thx in Adv
to view
www.pics.canadianbridgejunkies.net/zikula.jpg
Unabe to see pic, or even get into your Forums.
The problem you are describing has not been a problem here using the 'hack'. However if this IS actually causing you a problem then you are in for a Loooooooong wait for a any kind of fix. This has been some kind of 'showstopper' for pnphpbb2. I'm completely baffled as to why is the last couple of years that there has also been a 'showstopper' on a replacement of the PNphpBB2 called Zafenio . From what I can gather the main problem is no time and no motivation. The thing with getting something free is you have to be able to put up with things like no time, or no motivation to release bug fixes or new projects (Zafenio) that have been on the drawing board for years.
This is not the case for Zikula because if they took that attitude then people would be finding alternatives, really fast.
IMHO; If this 'hack' is a major problem for anyone then I would move to Dizkus as an alternative, or to another CMS that implements PHPBB3 (if that is what you want), which has been out for a couple of years.
Note: Do not take the so called 'Road Map' seriously as it has been updated and changed more than my grandma's underwear in her lifetime.
- Moderated by:
- Support
