ID:               38481
 User updated by:  oleg at programstar dot com
 Reported By:      oleg at programstar dot com
 Status:           Bogus
 Bug Type:         Date/time related
 Operating System: Fedora 4.1
 PHP Version:      5.1.4
 New Comment:

Yes, certainly! But repetition - thereby function uses standart
function date_format in Smarty.
Sorry for my bad English


Previous Comments:
------------------------------------------------------------------------

[2006-08-17 11:21:13] [EMAIL PROTECTED]

Actually, no need to try the snapshot, it's bogus.
The function was never intended to parse timestamps, it parses "string
containing a US English date format".

------------------------------------------------------------------------

[2006-08-17 11:04:04] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

If you're still able to reproduce it - please provide short and
complete reproduce script.

------------------------------------------------------------------------

[2006-08-17 11:01:33] oleg at programstar dot com

Description:
------------
I’ve found a bug in strtotime() function.
The present function does not return anything if you transmit
unix_timestamp as a function parameter. However, if the last four
digits of the value compose a valid year value, the function tries to
calculate the whole date with the last 5 digits. Probably it fails
there so it returns unix_timestamp the dates with the day and month
equal to the current one, as far as the year goes, it is the one that
the function has detected in the timestamp primary value. 

Example: 
Primary value: 1136412001 (January, 5, 2006)
On return: 998037401 (August, 17, 2001)

This way, a standard plug-in Smarty uses this function to transform the
UNIX_TIMESTAMP format data into any data value. 
PHP Version 5.1.4

Original here: http://hcjack.livejournal.com/322438.html (on russian)



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38481&edit=1

Reply via email to