Skip to content

Until 9:30AM previous day is highlighted instead of current day #155

@vieira

Description

@vieira

I'm not sure if this is intended, but the previous day is highlighted instead of the current day until about 9:30AM (i.e., at 8:45AM of October 16, October 15 is highlighted).

The problem seems to be in the "weeks" and the "default" cases in the switch statement of markNow:

var cd = Date.parse(new Date());
// new Date(cd) is Thu Oct 16 2014 09:20:20 GMT+0100 (WEST) which is the current day
 cd = (Math.floor(cd / 36400000) * 36400000);
// new Date(cd) is Wed Oct 15 2014 23:26:40 GMT+0100 (WEST) which is the previous day

I'm also a bit confused about the significance of 36400000 (which seems to be 10h06m40s?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions