Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

Zend_Date after 31. März 2043 inconsistency #725

Open
czjvic opened this issue Oct 4, 2016 · 3 comments
Open

Zend_Date after 31. März 2043 inconsistency #725

czjvic opened this issue Oct 4, 2016 · 3 comments

Comments

@czjvic
Copy link

czjvic commented Oct 4, 2016

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
Copy link
Member

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

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

@vegai
Copy link

vegai commented Oct 13, 2016

Should Zend_Date be marked as deprecated?

@froschdesign
Copy link
Member

@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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants