Changeset 1214

Show
Ignore:
Timestamp:
11/02/06 05:55:27 (2 years ago)
Author:
dominik
Message:

fix for the GMT+XX timezone name parsing

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/date/AgaviTimeZone.class.php

    r1213 r1214  
    442442    $minutes = 0; 
    443443    $negative = false; 
    444     if(preg_match('#GMT([+-]?)(\d{2}):?(\d{2})#', $id, $match)) { 
     444    if(preg_match('#GMT([+-]?)(\d{1,2}):?(\d{1,2})#', $id, $match)) { 
    445445      $negative = $match[1] == '-'; 
    446446      $hours = $match[2]; 
    447447      $minutes = $match[3]; 
    448     } elseif(preg_match('#GMT([+-]?)(\d{2})#', $id, $match)) { 
     448    } elseif(preg_match('#GMT([+-]?)(\d{1,2})#', $id, $match)) { 
    449449      $negative = $match[1] == '-'; 
    450450      $hours = $match[2];