•  

Forum

Moderated by: stefan, hombergs, xweber
Forum: Bugs
Post Reply in Topic: $opnConfig['opndate']->mkTimestamp(..) bug
Go to: OpenPHPnuke International Support Forum Index


About posting: Anonymous users can post new topics and replies in this forum.
Nickname:
Message Icon:
                                                                                                                       

more...


HTML : On
BBCode : On
 
BoldItalicUnderlineStrike|SuperscriptSubscriptTypewriterMarquee|Preformatted TextLeft AlignCenteredRight AlignJustify|Horizontal Line
Insert PictureInsert EmailaddressInsert LinkInsert WikipediatermInsert Wikibookterm|Insert QuoteInsert Code|Insert unordered ListInsert ordered ListInsert Listitem|Insert DefintionlistInsert DefinitiontermInsert Defintion|Insert TableInsert TablerowInsert Tablecol|Smilies show/hide
 
Options:







 
Security Code
Security Code
reload

Topic Review

Author
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
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
 
Page took 0.06893 seconds to load