Skip to content

Email TTL type "day" and "week" seems to be the same #2455

Open
@kivione

Description

@kivione

now.setDate(now.getDate() + value);

It seems like the TTL type "day" and "week" seems to evaluate the same expire date:

case "day":
  now.setDate(now.getDate() + value);
  break;
case "week":
  now.setDate(now.getDate() + value);
  break;

I guess "week" should be now.getDate() + 7 * value

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