Skip to content

Week calculation for Weeks to Show and Input Fields is different #156

@bsalinas

Description

@bsalinas

So I just came across this interesting edge case. Generally, there are 2 weeks of input fields to input time for (this week and last week). Today, when I logged into Staffplan, I only saw one input field.
This is what it looked like.
If I set my clock to 15.Feb 6:37 PM
screen shot 2015-02-15 at 6 37 36 pm

Because I had never seen that before, I changed my system clock to yesterday and refreshed the page:
If I set my clock to be 14.Feb 6:37 PM
screen shot 2015-02-14 at 6 37 15 pm

And then I set it to tomorrow.
If I set my clock to 16.Feb 6:37 PM
screen shot 2015-02-16 at 6 38 09 pm

It looks like the calculation for when to advance the weeks must be different in some way from the calculation for whether to show an input field.... or maybe there's something else.

No javascript errors in the console or anything else noticeably wrong with the app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions