From 3b889a970adbfc3ca015803f80a2a45066abcbd9 Mon Sep 17 00:00:00 2001
From: Greg Aker
Date: Mon, 10 Jan 2011 12:35:57 -0600
Subject: Fixed a bug (#14628) where the DATE_ISO8601 variable was returning an
incorrectly formatted date string.
---
system/helpers/date_helper.php | 2 +-
user_guide/changelog.html | 1 +
user_guide/helpers/date_helper.html | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/system/helpers/date_helper.php b/system/helpers/date_helper.php
index d328a7b17..553e8d7ee 100644
--- a/system/helpers/date_helper.php
+++ b/system/helpers/date_helper.php
@@ -114,7 +114,7 @@ if ( ! function_exists('standard_date'))
$formats = array(
'DATE_ATOM' => '%Y-%m-%dT%H:%i:%s%Q',
'DATE_COOKIE' => '%l, %d-%M-%y %H:%i:%s UTC',
- 'DATE_ISO8601' => '%Y-%m-%dT%H:%i:%s%O',
+ 'DATE_ISO8601' => '%Y-%m-%dT%H:%i:%s%Q',
'DATE_RFC822' => '%D, %d %M %y %H:%i:%s %O',
'DATE_RFC850' => '%l, %d-%M-%y %H:%m:%i UTC',
'DATE_RFC1036' => '%D, %d %M %y %H:%i:%s %O',
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index 0b060da22..013468f6f 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -199,6 +199,7 @@ Hg Tag:
Fixed a bug where multiple libraries could not be loaded by passing an array to load->library()
Fixed a bug in the html helper where too much white space was rendered between the src and alt tags in the img() function.
Fixed a bug in the profilers _compile_queries() function.
+ Fixed a bug in the date helper where the DATE_ISO8601 variable was returning an incorrectly formatted date string.
Version 1.7.2
diff --git a/user_guide/helpers/date_helper.html b/user_guide/helpers/date_helper.html
index e38d81a82..59641a9e8 100644
--- a/user_guide/helpers/date_helper.html
+++ b/user_guide/helpers/date_helper.html
@@ -129,7 +129,7 @@ echo standard_date($format, $time);
DATE_ISO8601 |
ISO-8601 |
- 2005-08-14T16:13:03+0000 |
+ 2005-08-14T16:13:03+00:00 |
DATE_RFC822 |
--
cgit v1.2.3-24-g4f1b