Archived
1
0
Fork 0
This repository has been archived on 2026-05-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
fiktivkod/library/Fiktiv/Date.php
2010-11-16 17:57:16 +01:00

27 lines
No EOL
597 B
PHP

<?php
class Fiktiv_Date extends Zend_Date
{
public function __toString()
{
return $this->toString();
}
public function toString($format = null, $type = null, $locale = null)
{
if (null === $format) {
$format = 'yyyy-MM-dd HH:mm:ss';
}
return parent::toString($format, $type, $locale);
}
public static function isDate($date, $format = null, $locale = null)
{
if (null === $format) {
$format = 'yyyy-MM-dd HH:mm:ss';
}
return parent::isDate($date, $format, $locale);
}
}