Skip to content

Commit 6e2d319

Browse files
committed
fix: always return a date, set one if not in data
1 parent d71a18d commit 6e2d319

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/Microformats.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public function getTitle(array $microformats)
288288
public function getPublishDate(array $microformats)
289289
{
290290
if (empty($microformats['items'])) {
291-
return null;
291+
return date('Y-m-d\TH:i:sP', time());
292292
}
293293

294294
foreach ($microformats['items'] as $item) {
@@ -301,6 +301,6 @@ public function getPublishDate(array $microformats)
301301
}
302302
}
303303

304-
return null;
304+
return date('Y-m-d\TH:i:sP', time());
305305
}
306306
}

vendor/composer/installed.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php return array(
22
'root' => array(
33
'name' => 'mauricerenck/indieconnector',
4-
'pretty_version' => '2.0.1',
5-
'version' => '2.0.1.0',
4+
'pretty_version' => '2.1.0',
5+
'version' => '2.1.0.0',
66
'reference' => NULL,
77
'type' => 'kirby-plugin',
88
'install_path' => __DIR__ . '/../../',
@@ -38,8 +38,8 @@
3838
'dev_requirement' => false,
3939
),
4040
'mauricerenck/indieconnector' => array(
41-
'pretty_version' => '2.0.1',
42-
'version' => '2.0.1.0',
41+
'pretty_version' => '2.1.0',
42+
'version' => '2.1.0.0',
4343
'reference' => NULL,
4444
'type' => 'kirby-plugin',
4545
'install_path' => __DIR__ . '/../../',

0 commit comments

Comments
 (0)