Skip to content

Format decreasing the date value #52

@mmendesx

Description

@mmendesx

Why 2014-01-11 is 02/11/2014?

When I use the format(date, "PP") function, lets assume that the date is 2025-04-12.
the return of the function is 2025-04-11. Why?

It makes with all TZ that I used:

  • America/Sao_Paulo
  • America/New_York

It doesn't make any sense decreasing 1 day from the date.

I thought that was because I was coding at 02:00 AM, but even in the afternoon it happens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions