Skip to content

Commit 6ca4d6f

Browse files
committed
chore: replace strftime by date for php 8.1 compatibility
1 parent fe401ed commit 6ca4d6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/dspace/class-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function display() {
112112
$this->displayTextInput( 'pb_publisher', getset( $metadata, 'pb_publisher', '' ), __( 'Publisher', 'excalibur' ), null, false );
113113

114114
// SWORD: Date Available
115-
$this->displayTextInput( 'pb_publication_date', ( ! empty( $metadata['pb_publication_date'] ) ) ? strftime( '%Y-%m-%d', $metadata['pb_publication_date'] ) : '', __( 'Publication Date', 'excalibur' ) );
115+
$this->displayTextInput( 'pb_publication_date', ( ! empty( $metadata['pb_publication_date'] ) ) ? date( 'Y-m-d', $metadata['pb_publication_date'] ) : '', __( 'Publication Date', 'excalibur' ) );
116116

117117
// SWORD: Abstract
118118
$this->displayTextArea( 'pb_about_50', getset( $metadata, 'pb_about_50', '' ), __( 'Short Description', 'excalibur' ) );

0 commit comments

Comments
 (0)