Making WordPress.org


Ignore:
Timestamp:
11/01/2022 12:48:18 AM (2 years ago)
Author:
dd32
Message:

Make: [time] shortcode: Set the Month prior to setting the day of the month, to avoid issues with timestamps that are the 31st of the previous month when the current month has 30 days.

When the date object was initialized, the internal month of the object would rollover the 31st -> 1st if the current month only had 30 days.

See https://wordpress.slack.com/archives/C03LZ88NX6G/p1667261134507149?thread_ts=1667261063.316079&cid=C03LZ88NX6G

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.