Skip to content

Commit

Permalink
Merge pull request #5 from kant312/master
Browse files Browse the repository at this point in the history
Added support for negative timestamps
  • Loading branch information
pvledoux committed Jun 26, 2014
2 parents df37da4 + c63a23a commit c2db7fc
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -143,7 +143,7 @@ private function _run() {
}

private function _is_timestamp( $string ) {
return ( 1 === preg_match( '~^[1-9][0-9]*$~', $string ) );
return ( 1 === preg_match( '~^-?[1-9][0-9]*$~', $string ) );
}


Expand Down

0 comments on commit c2db7fc

Please sign in to comment.