Esempio n. 1
0
 /**
  * test conversion from local time to DB time, no TZ handling
  * @dataProvider timeTestSet
  */
 public function testToDbTimeFormatsNoTz($db, $tf, $display)
 {
     $tf = empty($tf) ? self::DEFAULT_TIME_FORMAT : $tf;
     $this->_setPrefs('Y-m-d', $tf, '');
     $this->assertEquals($db, $this->time_date->to_db_time($display, false), "Broken conversion for '{$tf}' with date '{$display}'");
 }