Make WordPress Core

#58065 closed defect (bug) (reported-upstream)

Calendar block is showing wrong previous month in gutenburg.

Reported by: dhrumilk's profile dhrumilk Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: Cc:

Description

Hello,
I have used the calendar block in WordPress, which shows the wrong previous month.

Step-by-step reproduction instructions

  1. Go to create a new post.
  2. Add a calendar block.
  3. and show below the previous link. The current month is April and the previous month is FEB instead of March.

also, I have created an issue in the Gutenberg repo.
https://github.com/WordPress/gutenberg/issues/49551

Attachments (1)

ss.png (38.8 KB) - added by dhrumilk 20 months ago.

Download all attachments as: .zip

Change History (5)

@dhrumilk
20 months ago

#1 @chiragrathod103
20 months ago

  • Keywords close added
  • Type changed from defect (bug) to feature request

That month's display is based on the existing posts/articles. so that was not a bug!

but yes you can do an improvement, in the calendar, only "_" is displayed below the date, so need to do more highlighting.

#2 @dhrumilk
20 months ago

@chiragrathod103 Thanks for your response.
I have checked. it's not a bug.

Thanks again for correcting me.

Last edited 20 months ago by dhrumilk (previous) (diff)

#3 @ugyensupport
20 months ago

Bug Report

Description

Need some improvement on Calander Blog

Environment

  • WordPress: 6.2
  • PHP: 8.0.0
  • Server: Apache/2.4.10 (Debian)
  • Database: mysqli (Server: 5.5.59-MariaDB-1~wheezy / Client: 5.5.62)
  • Browser: Chrome 111.0.0.0 (macOS)
  • Theme: Twenty Twenty-Three 1.1
  • MU-Plugins: None activated
  • Plugins:
    • Gutenberg 15.4.0
    • WordPress Beta Tester 3.3.7


Steps to Reproduce

  1. Go to create a new post.
  2. Add a calendar block and show below the previous link.
  3. 🐞 Bug occurs The current month is April and the previous month is FEB instead of March

Expected Results

  1. ✅ I can't see any issues on above mentioned bug on my end.

Actual Results

  1. ❌ Indeed if we have some improvement on showing next month options in better UI design and look of the Calendar in near future releases.

#4 @sabernhardt
20 months ago

  • Component changed from General to Editor
  • Keywords needs-patch close removed
  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed
  • Type changed from feature request to defect (bug)
  • Version trunk deleted

I'm closing this ticket because the reported situation (GB49551) is not a bug. The calendar only shows months with published posts.

If you want to suggest a different styling for the links, such as bold text in addition to the underline, you could open an enhancement issue on GitHub. Note, however, that color selections could easily cause problems with contrast (the block already has too many hard-coded colors).

Note: See TracTickets for help on using tickets.