Show
Ignore:
Timestamp:
01/08/07 09:14:45 (23 months ago)
Author:
mbonetti
Message:

fix for Blogger beta's new date format [ see http://forums.gregarius.net/comments.php?DiscussionID=533 ]

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/util.php

    r1665 r1666  
    582582function parse_iso8601($date_str) { 
    583583# regex to match wc3dtf 
    584     $pat = "/(\d{4})-?(\d{2})-?(\d{2})T?(\d{2}):?(\d{2})(:?(\d{2}))?(?:([-+])(\d{2}):?(\d{2})|(Z))?/"; 
     584    $pat = "/(\d{4})-?(\d{2})-?(\d{2})T?(\d{2}):?(\d{2})(:?(\d{2}\.?\d*))?(?:([-+])(\d{2}):?(\d{2})|(Z))?/"; 
    585585 
    586586    if (preg_match($pat, $date_str, $match)) {