[Bps-public-commit] r18517 - Net-Trac/trunk/lib/Net/Trac
jesse at bestpractical.com
jesse at bestpractical.com
Sat Feb 21 21:22:35 EST 2009
Author: jesse
Date: Sat Feb 21 21:22:35 2009
New Revision: 18517
Modified:
Net-Trac/trunk/lib/Net/Trac/Ticket.pm
Log:
Loosen our datetime regex
Modified: Net-Trac/trunk/lib/Net/Trac/Ticket.pm
==============================================================================
--- Net-Trac/trunk/lib/Net/Trac/Ticket.pm (original)
+++ Net-Trac/trunk/lib/Net/Trac/Ticket.pm Sat Feb 21 21:22:35 2009
@@ -97,7 +97,7 @@
sub timestamp_to_datetime {
my ( $self, $prop ) = @_;
- if ( $prop =~ /^(\d{4})-(\d\d)-(\d\d)T?(\d\d):(\d\d):(\d\d)(?:Z?([+-][\d:]+))?/ ) {
+ if ( $prop =~ /^(\d{4})-(\d\d)-(\d\d)[\sT](\d\d):(\d\d):(\d\d)(?:Z?([+-][\d:]+))?/i ) {
my ( $year, $month, $day, $hour, $min, $sec, $offset) =
( $1, $2, $3, $4, $5, $6, $7 );
More information about the Bps-public-commit
mailing list