public function setLocale($locale) { $this->dateField->setLocale($locale); $this->timeField->setLocale($locale); return $this; }
public function testSetLocale() { // should get en_NZ by default through setUp() $f = new DateField('Date', 'Date', '29/03/2003'); $f->setLocale('de_DE'); $f->setValue('29.06.2006'); $this->assertEquals($f->dataValue(), '2006-06-29'); }