Skip to content

Commit

Permalink
Merge pull request #318 from eduardomozart/patch-4
Browse files Browse the repository at this point in the history
Fix 1970 PHP date error on meta.xml
  • Loading branch information
Klap-in committed May 13, 2024
2 parents 196a48f + e2ee954 commit 2bb8e4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ODT/ODTmeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ class ODTMeta
* Constructor. Set initial meta data.
*/
public function __construct() {
$dateTime = new DateTime();

$this->meta = array(
'meta:generator' => 'DokuWiki '.getversion(),
'meta:initial-creator' => 'Generated',
'meta:creation-date' => date('Y-m-d\\TH::i:s', null), //FIXME
'meta:creation-date' => $dateTime->format("Y-m-d\\TH::i:s"),
'dc:creator' => 'Generated',
'dc:date' => date('Y-m-d\\TH::i:s', null),
'dc:date' => $dateTime->format("Y-m-d\\TH::i:s"),
'dc:language' => 'en-US',
'meta:editing-cycles' => '1',
'meta:editing-duration' => 'PT0S',
Expand Down

0 comments on commit 2bb8e4e

Please sign in to comment.