|
@@ -45,7 +45,7 @@ class Zend_Gdata_App_Util
|
|
|
$rfc3339 = '/^(\d{4})\-?(\d{2})\-?(\d{2})((T|t)(\d{2})\:?(\d{2})' .
|
|
$rfc3339 = '/^(\d{4})\-?(\d{2})\-?(\d{2})((T|t)(\d{2})\:?(\d{2})' .
|
|
|
'\:?(\d{2})(\.\d{1,})?((Z|z)|([\+\-])(\d{2})\:?(\d{2})))?$/';
|
|
'\:?(\d{2})(\.\d{1,})?((Z|z)|([\+\-])(\d{2})\:?(\d{2})))?$/';
|
|
|
|
|
|
|
|
- if (ctype_digit($timestamp)) {
|
|
|
|
|
|
|
+ if (ctype_digit((string)$timestamp)) {
|
|
|
return gmdate('Y-m-d\TH:i:sP', $timestamp);
|
|
return gmdate('Y-m-d\TH:i:sP', $timestamp);
|
|
|
} elseif (preg_match($rfc3339, $timestamp) > 0) {
|
|
} elseif (preg_match($rfc3339, $timestamp) > 0) {
|
|
|
// timestamp is already properly formatted
|
|
// timestamp is already properly formatted
|