summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-07-04 12:04:10 +0200
committerAndrey Andreev <narf@bofh.bg>2012-07-04 12:04:10 +0200
commitac57033236d5b62ba553b6bea87623f0dbeb2f49 (patch)
tree0609a42059f3d8dc062037a30b53941c510733a7 /system/helpers
parentb94b91afc77bcc133ff282559015933602bb2d3f (diff)
Deprecate Date helper standard_date()
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/date_helper.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/system/helpers/date_helper.php b/system/helpers/date_helper.php
index 6686089c6..a45b3d7ac 100644
--- a/system/helpers/date_helper.php
+++ b/system/helpers/date_helper.php
@@ -117,6 +117,19 @@ if ( ! function_exists('standard_date'))
*
* Returns a date formatted according to the submitted standard.
*
+ * As of PHP 5.2, the DateTime extension provides constants that
+ * serve for the exact same purpose and are used with date().
+ * Due to that, this function is DEPRECATED and should be removed
+ * in CodeIgniter 3.1+.
+ *
+ * Here are two examples of how you should replace it:
+ *
+ * date(DATE_RFC822, now()); // default
+ * date(DATE_W3C, $time); // a different format and time
+ *
+ * Reference: http://www.php.net/manual/en/class.datetime.php#datetime.constants.types
+ *
+ * @deprecated
* @param string the chosen format
* @param int Unix timestamp
* @return string