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

Zend_Date after 31. März 2043 inconsistency #725

@czjvic

Description

@czjvic

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions