fixed typo and datetime parser
This commit is contained in:
parent
8df2d09bf1
commit
e126747501
1 changed files with 4 additions and 2 deletions
|
@ -63,8 +63,10 @@ abstract class Interpreter implements InterpreterInterface {
|
|||
$this->from = (isset($from)) ? self::parseDateTimeString($from, time() * 1000) : NULL;
|
||||
$this->to = (isset($to)) ? self::parseDateTimeString($to, (isset($this->from)) ? $this->from : time() * 1000) : NULL;
|
||||
|
||||
if (!is_null($this->from) && !is_null($this->from) && $this->from > $this->to) {
|
||||
throw new \Exception('&from is larger than &to parameter');
|
||||
Util\Debug::log('time', $this->from, $this->to);
|
||||
|
||||
if (isset($this->from) && isset($this->to) && $this->from > $this->to) {
|
||||
throw new \Exception('&from is larger than &to parameter');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue