mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-08 10:41:25 +02:00
17 lines
342 B
PHP
17 lines
342 B
PHP
<?php
|
|
/**
|
|
* @package framework
|
|
* @subpackage tests
|
|
*/
|
|
class TimeTest extends SapphireTest {
|
|
|
|
public function testNice() {
|
|
$time = DBField::create_field('Time', '17:15:55');
|
|
$this->assertEquals('5:15pm', $time->Nice());
|
|
|
|
Config::inst()->update('Time', 'nice_format', 'H:i:s');
|
|
$this->assertEquals('17:15:55', $time->Nice());
|
|
}
|
|
|
|
}
|