Skip to content

Backward incompatibility on date function 8.1+ #13947

@eerison

Description

@eerison

Description

The following code:

https://3v4l.org/aMChK

<?php

var_dump(date('y-m-d H:i:s', '2222222222'));

Resulted in this output:

string(17) "40-06-02 05:57:02"

But I expected this output instead:

string(17) "40-06-02 04:57:02"

Hello guys on date function contains a backward incompatibility after 8.1+

PHP Version

PHP 8.1+

Operating System

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions