# Bookmark reminder for next Monday is off by one day

**URL:** https://meta.discourse.org/t/bookmark-reminder-for-next-monday-is-off-by-one-day/150969
**Category:** Bug
**Created:** [10 במאי,‏ 2020,‏ 4:55pm UTC](https://meta.discourse.org/t/bookmark-reminder-for-next-monday-is-off-by-one-day/150969 "2020-05-10T16:55:36Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Yu\_Gong1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yu_gong1/32/98413_2.png) [@Yu\_Gong1](https://meta.discourse.org/u/Yu_Gong1)
#### Post date: [10 במאי,‏ 2020,‏ 4:55pm UTC](https://meta.discourse.org/t/bookmark-reminder-for-next-monday-is-off-by-one-day/150969/1 "2020-05-10T16:55:36Z")

</div>

Hi,

There is a small bug in the bookmarking feature. There is a options to set reminder for “Next Monday”, but its 18th of may, not 17th of may:

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/d/dd81a74d72539cf65d46ffe9cbc8551b25d484ad.png)

our discourse server hosted by discourse: [https://keskustelut.inderes.fi/](https://keskustelut.inderes.fi/)

---

<div class="post-metadata">

### Author: ![seanblue](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@seanblue](https://meta.discourse.org/u/seanblue)
#### Post date: [10 במאי,‏ 2020,‏ 5:04pm UTC](https://meta.discourse.org/t/bookmark-reminder-for-next-monday-is-off-by-one-day/150969/2 "2020-05-10T17:04:02Z")

</div>

Mine says the 18th, so maybe it’s a time zone issue. Though in my case it’s still weird that “Next Monday” shows up before “Next Week” in the list since that’s out of order chronologically. (I assume this only happens on Sunday.)

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/6/9664305858c220e5c1b1b45b769c62f00e5c9593.jpeg)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [10 במאי,‏ 2020,‏ 6:04pm UTC](https://meta.discourse.org/t/bookmark-reminder-for-next-monday-is-off-by-one-day/150969/3 "2020-05-10T18:04:35Z")

</div>

What timezone do you have set in your user preferences? Did “daylight savings time” happen recently in your timezone? cc @martin

---

<div class="post-metadata">

### Author: ![Yu\_Gong1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yu_gong1/32/98413_2.png) [@Yu\_Gong1](https://meta.discourse.org/u/Yu_Gong1)
#### Post date: [10 במאי,‏ 2020,‏ 7:53pm UTC](https://meta.discourse.org/t/bookmark-reminder-for-next-monday-is-off-by-one-day/150969/4 "2020-05-10T19:53:31Z")

</div>

Im not sure where to check our timezone, but this is something i found what could be related to this?  
We are located in Finland and our timezone is EEST (summer time) 3 hours ahead UTC.  
Finland switches to EEST 28.3.2020 and in winters its +2 EET

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/d/2d0e587f581b1e3b9f53219897c0bb25bbad93f5.png)

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [10 במאי,‏ 2020,‏ 11:16pm UTC](https://meta.discourse.org/t/bookmark-reminder-for-next-monday-is-off-by-one-day/150969/7 "2020-05-10T23:16:42Z")

</div>

Maybe this is something to do with different localizations starting their week on different days – I will take a look today.

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [11 במאי,‏ 2020,‏ 3:58am UTC](https://meta.discourse.org/t/bookmark-reminder-for-next-monday-is-off-by-one-day/150969/8 "2020-05-11T03:58:29Z")

</div>

Well, I was close with the localization guess. The forum you linked has Finnish localization, and I did not realize that the moment.js `.day()` function is locale-dependent IF you give it a string to parse. I was giving it the string “Monday” (which in Finnish is “maanantai”), so the parse failed and moment.js fell back to Sunday.

I’ve changed this in the below PR to use the number `1` which is _always_ Monday no matter the locale.

[https://github.com/discourse/discourse/pull/9737](https://github.com/discourse/discourse/pull/9737)

As an additional note, “Next Week” is just "today + 7 days so locale is not a factor there.

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [11 במאי,‏ 2020,‏ 3:59am UTC](https://meta.discourse.org/t/bookmark-reminder-for-next-monday-is-off-by-one-day/150969/9 "2020-05-11T03:59:02Z")

</div>


