Author | rvt |
Date | 2004-09-21 13:11 |
Posts: | 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:
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 |
Print this page Close this page |
This article comes from OpenPHPnuke International Support |
http://www.openphpnuke.com/ |