commit | d9b44bef948928739b2b96b43d78b7629c0ccc15 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@bofh.bg> | Fri Jun 15 16:07:08 2012 +0300 |
committer | Andrey Andreev <narf@bofh.bg> | Fri Jun 15 16:07:08 2012 +0300 |
tree | 7912f2cdfd955862191066850db42b500f1e9ae0 | |
parent | e446ad337945b7839b73f13531b21ed16ece241e [diff] [blame] |
Fix issue #520
diff --git a/system/helpers/date_helper.php b/system/helpers/date_helper.php index 077a671..065a223 100644 --- a/system/helpers/date_helper.php +++ b/system/helpers/date_helper.php
@@ -488,6 +488,10 @@ { return 'Unknown'; } + elseif (empty($format)) + { + $format = 'U'; + } // Date like: YYYYMM if (preg_match('/^\d{6}$/i', $bad_date))