Skip to content

Commit

Permalink
Merge pull request #60 from pressbooks/chore/upgrade-php8.1
Browse files Browse the repository at this point in the history
chore: replace strftime by date for php 8.1 compatibility
  • Loading branch information
SteelWagstaff authored Jan 16, 2023
2 parents e03d665 + b849a4d commit a94508f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '14', '16', '18' ]
node: [ '18' ]
name: Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v3
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
**Tags:** publishing, SWORD, libraries, repositories \
**Requires at least:** 6.1.1 \
**Tested up to:** 6.1.1 \
**Stable tag:** 0.5.0 \
**Stable tag:** 0.6.0 \
**License:** GPLv3 or later, New BSD License \
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -55,6 +55,6 @@ Or, download the latest version from the releases page and unzip it into your Wo

## Changelog

### 0.5.0
* See https://github.com/pressbooks/excalibu/releases/tag/0.5.0
* Full release history at https://github.com/pressbooks/excalibu/releases/
### 0.6.0
* See https://github.com/pressbooks/excalibur/releases/tag/0.6.0
* Full release history at https://github.com/pressbooks/excalibur/releases/
2 changes: 1 addition & 1 deletion excalibur.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
GitHub Plugin URI: pressbooks/excalibur
Release Asset: true
Description: Excalibur is a SWORD protocol client for Pressbooks.
Version: 0.5.0
Version: 0.6.0
Author: Pressbooks (Book Oven Inc.)
Author URI: https://pressbooks.org
Requires PHP: 8.0
Expand Down
2 changes: 1 addition & 1 deletion inc/dspace/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function display() {
$this->displayTextInput( 'pb_publisher', getset( $metadata, 'pb_publisher', '' ), __( 'Publisher', 'excalibur' ), null, false );

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

// SWORD: Abstract
$this->displayTextArea( 'pb_about_50', getset( $metadata, 'pb_about_50', '' ), __( 'Short Description', 'excalibur' ) );
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"lint:fix-styles": "stylelint \"assets/styles/**/*.scss\" scss --fix"
},
"engines": {
"node": ">= 14"
"node": ">= 18"
},
"dependencies": {
"select2": "^4.0.13"
Expand Down

0 comments on commit a94508f

Please sign in to comment.