diff options
author | Frédéric Guillot <fguillot@users.noreply.github.com> | 2014-04-27 15:14:13 -0400 |
---|---|---|
committer | Frédéric Guillot <fguillot@users.noreply.github.com> | 2014-04-27 15:14:13 -0400 |
commit | 096b282a473fa2b27c3bfe3061f54b5fd83c75e0 (patch) | |
tree | fc358e47860c50ab8505e0666043d76196e48016 /core/translator.php | |
parent | 6551609d1b248011d301080c1be7c48085dc5d55 (diff) |
Add a basic task search
Diffstat (limited to 'core/translator.php')
-rw-r--r-- | core/translator.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/translator.php b/core/translator.php index 0f8c3d89..09480111 100644 --- a/core/translator.php +++ b/core/translator.php @@ -52,6 +52,10 @@ namespace Translator { function datetime($format, $timestamp) { + if (! $timestamp) { + return ''; + } + return strftime(get($format, $format), (int) $timestamp); } |