Skip to content

Commit

Permalink
Warning silently ignored when using strtotime() with default time zon…
Browse files Browse the repository at this point in the history
…e settings. Fixes #4
  • Loading branch information
sylvainhalle committed Feb 2, 2017
1 parent d736095 commit bfe9852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fw/fw.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
// Process date if not given as a Unix timestamp
if (isset($page->data["date"]) && !is_numeric($page->data["date"]))
{
$page->data["date"] = strtotime($page->data["date"]);
$page->data["date"] = @strtotime($page->data["date"]);
}

// Target path mirrors relative location in content folder
Expand Down

0 comments on commit bfe9852

Please sign in to comment.