Make WordPress Core

Opened 4 years ago

Closed 4 years ago

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

Calendar block is showing wrong previous month in gutenburg.

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

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 4 years ago.

Download all attachments as: .zip

Change History (5)

@dhrumilk
4 years ago

#1 @chiragrathod103
4 years ago

  • Keywords close added
  • Type defect (bug) → 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
4 years ago

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

Thanks again for correcting me.

Last edited 4 years ago by dhrumilk (previous) (diff)

#3 @ugyensupport
4 years 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
4 years ago

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

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.