captbaritone / captbaritone/datejs

setWeek patch

Open
#58 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
Hi

I've run into a small bug with setWeek.

My interpretation of how this function should work is: Move to the given
week in this year.
The current implementation does not take into consideration the case, when
the week is No. 1 but the month is December.

Why are you moving to the start of the week? If I need to move to some
arbitrary week and see what date the same dayofweek is I'll need to reset
the dayofweek.

I've created a patch to fix this issue
```

Original issue reported on code.google.com by `Divine...@gmail.com` on 14 Jan 2009 at 10:33

Attachments:
- [datejs_corejs_setweek_001.diff](https://storage.googleapis.com/google-code-attachments/datejs/issue-58/comment-0/datejs_corejs_setweek_001.diff)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.