On the 31st the number of the next month is calculated incorrectly

Created on 6 April 2025, about 1 month ago

Please note, this issue is not duplicate for https://www.drupal.org/project/date_pager/issues/3517131 πŸ› Date is considered after noon (12:00), but it should be after midnight (after 00:00) Active

Problem/Motivation

On the 31st the number of the next month is calculated incorrectly

Steps to reproduce

There are 2 events on the site with dates in 2025:
1: March 28th (or any day of Marth)
2: April 4th (or any day of April)

Pager options
Default time: current
Granularity: Month (or Day)

The time is not specified in the date field. Only the day.

If today is March 30th, the pager is displayed correctly.
When Granularity: Month is specified, the pager is displayed like this:

When Granularity: Day is specified, the pager is displayed like this:

If today is March 31st, the pager is displayed incorrectly.

In the following screenshots, the month is specified as "05". Although April should be displayed as "04".

When Granularity: Month is specified, the pager is displayed like this:

When Granularity: Day is specified, the pager is displayed like this:

πŸ› Bug report
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine vasyok

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024