Fork me on GitHub

Date issue with PNphpBB2  Bottom

Go to page 1 - 2 [+1]:

  • 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."
  • 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

    if (!isset($ml_date[$datefmt])) {


    with

    Code

    if (true) {


    As I said, use at your own risk. I'd be very interested to hear any alternative (proper) solutions.

    stef
  • 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.
  • 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

    if (!isset($ml_date[$datefmt])) {


    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
  • 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
  • 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'?
  • 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

    if (!isset($ml_date[$datefmt])) {


    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
  • 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
  • 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?
  • 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?
  • 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?
  • 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
  • Thanks for the explanation Chris. I understand completely about having no time :p

    Have a good day, sir.
  • 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
  • {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.

Go to page 1 - 2 [+1]:

This list is based on users active over the last 60 minutes.