Skip to content

toDate() and time in future - relative time is wrong #3605

@Jimmi08

Description

@Jimmi08

I have those data:

    ".$row2['ecds_date']." <br>
    ".$tp->toDate($row2['ecds_date'], "relative")." <br>
    ".$tp->toDate($row2['ecds_date'], "long")."

Result:
image

Date is correctly saved in Unix forum. Manual checking:
image
image

What could be wrong?
Server time is correct (user timezone is not used)

image

Checked html code:
<span data-livestamp="1546988400">1 day ago</span>

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugA problem that should not be happening

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions