[banshee] [W3CDateTime] Make the timezone optional in W3C DateTime strings



commit 636fa0ee9423a017bb79ef176d024f3783787b4d
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Sun Aug 30 13:06:49 2009 +0200

    [W3CDateTime] Make the timezone optional in W3C DateTime strings
    
    The new Last.fm API sends playlist containing dates without timezone,
    and this matches the spec at
    http://www.xspf.org/xspf-v1.html#rfc.section.4.1.1.2.8

 .../Mono.Media/Media.Playlists.Xspf/W3CDateTime.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Libraries/Mono.Media/Media.Playlists.Xspf/W3CDateTime.cs b/src/Libraries/Mono.Media/Media.Playlists.Xspf/W3CDateTime.cs
index a76c2c2..d7a96eb 100644
--- a/src/Libraries/Mono.Media/Media.Playlists.Xspf/W3CDateTime.cs
+++ b/src/Libraries/Mono.Media/Media.Playlists.Xspf/W3CDateTime.cs
@@ -208,7 +208,7 @@ namespace Media.Playlists.Xspf
                 @"^(?<year>\d\d\d\d)" +
                 @"(-(?<month>\d\d)(-(?<day>\d\d)(T(?<hour>\d\d):" + 
                 @"(?<min>\d\d)(:(?<sec>\d\d)(?<ms>\.\d+)?)?" +
-                @"(?<ofs>(Z|[+\-]\d\d:\d\d)))?)?)?$"; 
+                @"(?<ofs>(Z|[+\-]\d\d:\d\d))?)?)?)?$"; 
 
             string combined_format = String.Format(
                 @"(?<rfc822>{0})|(?<w3c>{1})", Rfc822DateFormat, W3CDateFormat);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]