Announcement

Collapse
No announcement yet.

Bug in Impex with importing from UBB6 (timestamps)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • jmar
    replied
    yes

    Leave a comment:


  • Zachery
    replied
    BTW are you using the LATEST version of impex?

    Leave a comment:


  • jmar
    replied
    Yes, it's a bug. I think I've found it:

    In 007.php you have to replace

    PHP Code:
    if ($time[1] == 'PM' && $hrmn[0] != '12')
    {
    $hrmn[0] = intval($hrmn[0]) + 12;

    with

    PHP Code:
    if ($hrmn[0] == '12' and $time[1] == "AM")
    {
    $hrmn[0] = 0;          }
    elseif (
    $time[1]=="PM" && $hrmn[0] != '12')
    {
    $hrmn[0] = intval($hrmn[0]) + 12;

    Hope that helps ...

    Regards
    Johannes

    Leave a comment:


  • Zachery
    replied
    If its really a bug go report it in the bug tracker so jerry will notice it right away

    Leave a comment:


  • jmar
    started a topic Bug in Impex with importing from UBB6 (timestamps)

    Bug in Impex with importing from UBB6 (timestamps)

    Hello,

    there seems to be a bug in Impex.
    (At transforming dates/time from UBB (12 hours with AM and PM) to unixtimestamps at vB)

    Example of UBB6 00xxxx.cgi file:

    ---
    A||||17||Chicorico||Recon-Bar auch ...
    Z||000000||Chicorico||06-08-2004||12:44 AM||||Hy, suche ...
    Z||000001||Chicorico||06-08-2004||12:56 AM||||Kennst ...
    Z||000002||joe||06-08-2004||01:39 AM||||Ähh, immer ...
    Z||000003||bastian||06-08-2004||02:59 AM||||hallo,...
    Z||000004||Timm||06-08-2004||01:23 PM|||| ...
    ...
    ---

    The thread is beginning at 12:44 AM.
    Impex change it to timestamp 1086691440
    Das date from 1086691440 is 08.06.2004 - 12:44:00
    (And 12:44:00 is NOT 12:44 AM)

    So in the example above the first two postings appears in the middle of the thread - makes NO sense

    It's a big problem and it's at many threads.

    Can someone help? What do I have to change at Impex?

    Regards
    Johannes
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X