Skip to content

Commit

Permalink
Quick fix to 9e574a2 / Date::formatted_time() to use specified timest…
Browse files Browse the repository at this point in the history
…amp format
  • Loading branch information
BRMatt committed Sep 5, 2010
1 parent 05eeb37 commit f038581
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/kohana/date.php
Expand Up @@ -541,13 +541,13 @@ public static function dos2unix($timestamp = FALSE)
*/
public static function formatted_time($datetime_str = 'now', $timestamp_format = NULL)
{
$timestamp_format = $timestamp_format == NULL ? self::$timestamp_format : $timestamp_format;
$timestamp_format = $timestamp_format == NULL ? Date::$timestamp_format : $timestamp_format;

$time = new DateTime($datetime_str, new DateTimeZone(
Date::$timezone ? Date::$timezone : date_default_timezone_get()
));

return $time->format(Date::$timestamp_format);
return $time->format($timestamp_format);
}

} // End date

0 comments on commit f038581

Please sign in to comment.