diff -r f34ecfa459ab -r 9b8688df52d5 plugins/yubikey/corelib.php --- a/plugins/yubikey/corelib.php Sat May 16 18:17:09 2009 -0400 +++ b/plugins/yubikey/corelib.php Sat May 16 18:24:45 2009 -0400 @@ -218,7 +218,7 @@ function yk_strtotime($timestamp) { - if ( !preg_match('/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z[0-9]+)$/', $timestamp, $match) ) + if ( !preg_match('/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z[0-9]+)?$/', $timestamp, $match) ) return 0; $hour = intval($match[4]);