zendframework / zf1

This project reached its end-of-life on 2016-09-28. Contains conversion of ZF1 subversion repo to git, from version 15234 forward, and only containing master and release-1.12 branches and 1.12 tags.
https://framework.zend.com/blog/2016-06-28-zf1-eol.html
BSD 3-Clause "New" or "Revised" License
357 stars 796 forks source link

Zend_Date after 31. März 2043 inconsistency #725

Open czjvic opened 8 years ago

czjvic commented 8 years ago

Date before 31. März 2043

Code:

echo date_default_timezone_get();
$date = new Zend_Date();
$date->set('01/08/2040 00:00', 'dd/MM/YYYY HH:mm');
$date->setTimezone('Europe/Berlin');
echo $date->get('dd/MM/YYYY HH:mm');

Result:

Europe/Berlin
01/08/2040 00:00

Date after 31. März 2043

Code:

echo date_default_timezone_get();
$date = new Zend_Date();
$date->set('01/08/2045 00:00', 'dd/MM/YYYY HH:mm');
$date->setTimezone('Europe/Berlin');
echo $date->get('dd/MM/YYYY HH:mm');

Result:

Europe/Berlin
01/08/2045 01:00
froschdesign commented 8 years ago

We are sorry, but ZF1 reaches its End of Life (EOL).

Use PHP's DateTimeclass and you are ready for the future.

vegai commented 7 years ago

Should Zend_Date be marked as deprecated?

froschdesign commented 7 years ago

@vegai For a single component it makes no sense, because the complete version 1 is no longer supported. (Enterprise users of Zend Server get still support)