Changeset 1498 for branches/3.0
- Timestamp:
- 11/18/2006 06:18:00 PM (2 years ago)
- Location:
- branches/3.0
- Files:
-
- 3 added
- 2 modified
-
framework/I18N/core/DateFormat.php (modified) (2 diffs)
-
framework/Util/TDateTimeStamp.php (modified) (1 diff)
-
tests/FunctionalTests/tickets/protected/pages/Ticket283.page (added)
-
tests/FunctionalTests/tickets/protected/pages/Ticket283.php (added)
-
tests/FunctionalTests/tickets/protected/pages/Ticket453.page (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/framework/I18N/core/DateFormat.php
r1397 r1498 111 111 public function format($time, $pattern='F', $charset='UTF-8') 112 112 { 113 if(is_string($time)) 113 if (is_numeric($time)) //assumes unix epoch 114 $time = floatval($time); 115 else if(is_string($time)) 114 116 $time = @strtotime($time); 115 117 … … 117 119 $pattern = 'F'; 118 120 119 $date = @getdate($time); 121 $s = Prado::createComponent('System.Util.TDateTimeStamp'); 122 123 $date = $s->getDate($time); 120 124 121 125 $pattern = $this->getPattern($pattern); -
branches/3.0/framework/Util/TDateTimeStamp.php
r1397 r1498 194 194 return $this->_getDateInternal($d); 195 195 } 196 197 196 198 197 199 /**
