Skip to content

Bug: Numerical times in sessionStarter.service.ts not in milliseconds #889

Description

@tickBit

What doesn't work?

In box/session implementation in the file sessionStarter.service.ts the numerical times are not in milliseconds:

    const now = new Date().getTime();
    const timeAfterWeek = now + 60 * 60 * 24 * 7;
    const timeAfterMonth = now + 60 * 60 * 24 * 30;

What should it do instead?

Those numerical times should be multiplied by 1000.

Anything else you want to add?

This affects also test(s) related to the service.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions