•  

Forum

Moderated by: stefan, hombergs, xweber
Forum Index
OpenPhpNuke
     Bugs
     $opnConfig['opndate']->mkTimes tamp(..) bug

Author Printer friendly page$opnConfig['opndate']->mkTimes tamp(..) bug
rvt
Joined: November 29, 2003
Posts: 20


Send private message to rvt Visit website from rvt
$opnConfig['opndate']->mkTimestamp(..) bug

Posted: 2004-09-21 13:11

When using mkTimestamp in the opdate class I found that the time is wrongly initialised when setting up a zero time like this '0:0:0'


example:

$ret='';
$opnConfig['opndate']->mkTimestamp($ret, '2004', '3', '10', '12', '0', '0');



would give me the correct date and hour,
but the minute and second is set according to the current minute and second.

In the function mkTimestamp(...) the function empty() is used (see empty())

According to the manual empty ('0') returns true so when using a zero minute, hour or second I get the current minute, hour or second.

if I do a simple string comparison instead of the empty(..) function works great here.

Ries


Quote Printer friendly page upwards
xweber
Joined: April 14, 2003


Send private message to xweber Visit website from xweber
Posted: 2004-10-11 17:51

That one has been solved while a IRC session.

It was the wrong call to set a date.

Alex


Quote Printer friendly page upwards
sort by

Previous thread:  opn_FormularClass bug...
Next Thread:  forum posting bugs

Jump To:

Nickname:
 
Security Code
Security Code
reload

 
Page took 0.06632 seconds to load