Skip to content

Commit

Permalink
Make the last argument to dateI8n optional
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Nov 12, 2024
1 parent 9bd6278 commit 9e44b6f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/date/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,11 @@ export function gmdate( dateFormat, dateValue = new Date() ) {
*
* @return {string} Formatted date.
*/
export function dateI18n( dateFormat, dateValue = new Date(), timezone ) {
export function dateI18n(
dateFormat,
dateValue = new Date(),
timezone = undefined
) {
if ( true === timezone ) {
return gmdateI18n( dateFormat, dateValue );
}
Expand Down

0 comments on commit 9e44b6f

Please sign in to comment.