Erebuss Blog

brtrue.s = IL000000 // powered by IL

  Home :: Contact :: Syndication  :: Login
  144 Posts :: 0 Stories :: 60 Comments :: 0 Trackbacks

Archives

Message Categories

. Hum
Météo

. PCA
PCA Foundator

.Net

Z'Autres (z pour le classement :)

Bon, les projets pérennisation et chef-d'oeuvre terminés, la soutenance intermédiaire d'Oracle passée, et avant de me plonger dans mon projet Cisco, j'ai décidé de faire mumuse avec la libraire Rss.net !

Et voila que je me rends compte que cette version ne gère pas tous les pubtime existants (notamment le format de clubic ...) ...

Après une petite recherche de 2H, j'ai trouvé la solution grâce à Ed Courtenay :
Une petite modif du rssreader.cs et ca roule :

public static string[][] TimeZones = new string[][] {
new string[] {"ACDT", "+1030", "Australian Central Daylight"},
new string[] {"ACST", "+0930", "Australian Central Standard"},
new string[] {"ADT", "-0300", "(US) Atlantic Daylight"},
new string[] {"AEDT", "+1100", "Australian East Daylight"},
new string[] {"AEST", "+1000", "Australian East Standard"},
new string[] {"AHDT", "-0900", "AHDT"},
new string[] {"AHST", "-1000", "AHST"},
new string[] {"AST", "-0400", "(US) Atlantic Standard"},
new string[] {"AT", "-0200", "Azores"},
new string[] {"AWDT", "+0900", "Australian West Daylight"},
new string[] {"AWST", "+0800", "Australian West Standard"},
new string[] {"BAT", "+0300", "Bhagdad"},
new string[] {"BDST", "+0200", "British Double Summer"},
new string[] {"BET", "-1100", "Bering Standard"},
new string[] {"BST", "-0300", "Brazil Standard"},
new string[] {"BT", "+0300", "Baghdad"},
new string[] {"BZT2", "-0300", "Brazil Zone 2"},
new string[] {"CADT", "+1030", "Central Australian Daylight"},
new string[] {"CAST", "+0930", "Central Australian Standard"},
new string[] {"CAT", "-1000", "Central Alaska"},
new string[] {"CCT", "+0800", "China Coast"},
new string[] {"CDT", "-0500", "(US) Central Daylight"},
new string[] {"CED", "+0200", "Central European Daylight"},
new string[] {"CET", "+0100", "Central European"},
new string[] {"CST", "-0600", "(US) Central Standard"},
new string[] {"EAST", "+1000", "Eastern Australian Standard"},
new string[] {"EDT", "-0400", "(US) Eastern Daylight"},
new string[] {"EED", "+0300", "Eastern European Daylight"},
new string[] {"EET", "+0200", "Eastern Europe"},
new string[] {"EEST", "+0300", "Eastern Europe Summer"},
new string[] {"EST", "-0500", "(US) Eastern Standard"},
new string[] {"FST", "+0200", "French Summer"},
new string[] {"FWT", "+0100", "French Winter"},
new string[] {"GMT", "-0000", "Greenwich Mean"},
new string[] {"GST", "+1000", "Guam Standard"},
new string[] {"HDT", "-0900", "Hawaii Daylight"},
new string[] {"HST", "-1000", "Hawaii Standard"},
new string[] {"IDLE", "+1200", "Internation Date Line East"},
new string[] {"IDLW", "-1200", "Internation Date Line West"},
new string[] {"IST", "+0530", "Indian Standard"},
new string[] {"IT", "+0330", "Iran"},
new string[] {"JST", "+0900", "Japan Standard"},
new string[] {"JT", "+0700", "Java"},
new string[] {"MDT", "-0600", "(US) Mountain Daylight"},
new string[] {"MED", "+0200", "Middle European Daylight"},
new string[] {"MET", "+0100", "Middle European"},
new string[] {"MEST", "+0200", "Middle European Summer"},
new string[] {"MEWT", "+0100", "Middle European Winter"},
new string[] {"MST", "-0700", "(US) Mountain Standard"},
new string[] {"MT", "+0800", "Moluccas"},
new string[] {"NDT", "-0230", "Newfoundland Daylight"},
new string[] {"NFT", "-0330", "Newfoundland"},
new string[] {"NT", "-1100", "Nome"},
new string[] {"NST", "+0630", "North Sumatra"},
new string[] {"NZ", "+1100", "New Zealand "},
new string[] {"NZST", "+1200", "New Zealand Standard"},
new string[] {"NZDT", "+1300", "New Zealand Daylight"},
new string[] {"NZT", "+1200", "New Zealand"},
new string[] {"PDT", "-0700", "(US) Pacific Daylight"},
new string[] {"PST", "-0800", "(US) Pacific Standard"},
new string[] {"ROK", "+0900", "Republic of Korea"},
new string[] {"SAD", "+1000", "South Australia Daylight"},
new string[] {"SAST", "+0900", "South Australia Standard"},
new string[] {"SAT", "+0900", "South Australia Standard"},
new string[] {"SDT", "+1000", "South Australia Daylight"},
new string[] {"SST", "+0200", "Swedish Summer"},
new string[] {"SWT", "+0100", "Swedish Winter"},
new string[] {"USZ3", "+0400", "USSR Zone 3"},
new string[] {"USZ4", "+0500", "USSR Zone 4"},
new string[] {"USZ5", "+0600", "USSR Zone 5"},
new string[] {"USZ6", "+0700", "USSR Zone 6"},
new string[] {"UT", "-0000", "Universal Coordinated"},
new string[] {"UTC", "-0000", "Universal Coordinated"},
new string[] {"UZ10", "+1100", "USSR Zone 10"},
new string[] {"WAT", "-0100", "West Africa"},
new string[] {"WET", "-0000", "West European"},
new string[] {"WST", "+0800", "West Australian Standard"},
new string[] {"YDT", "-0800", "Yukon Daylight"},
new string[] {"YST", "-0900", "Yukon Standard"},
new string[] {"ZP4", "+0400", "USSR Zone 3"},
new string[] {"ZP5", "+0500", "USSR Zone 4"},
new string[] {"ZP6", "+0600", "USSR Zone 5"}
};

public static DateTime ParseDateTime(string dateTime)
{
    System.Globalization.CultureInfo ci = CultureInfo.InvariantCulture;

    try
    {
        return DateTime.Parse(dateTime, ci, DateTimeStyles.AllowWhiteSpaces);
    }
    catch (FormatException)
    {
        try
        {
            return DateTime.ParseExact(dateTime, new string[]
{ci.DateTimeFormat.SortableDateTimePattern,
ci.DateTimeFormat.RFC1123Pattern}, ci, DateTimeStyles.AllowWhiteSpaces);
        }
        catch (FormatException)
        {
             string dateFormat =
ci.DateTimeFormat.RFC1123Pattern.Replace("'GMT'", "zzz");
            foreach(string[] entry in TimeZones)
            {
                if (dateTime.EndsWith(entry[0]))
                {
                    dateTime = String.Format("{0}{1}", dateTime.Substring(0,
dateTime.Length - entry[0].Length), entry[1]);
                    break;                                    }
            }
            try
            {
                return DateTime.ParseExact(dateTime, dateFormat, ci,
DateTimeStyles.AllowWhiteSpaces);
            }
            catch (FormatException)
            {
                return DateTime.Now;
            }
        }
    }
}

Une petite modif dans le switch et ca roule :p
En tout cas, je dis : MERCI ED :)

Bon, je retourne bosser moi :)

NB : Solution soumise sur le SourceForge de Rss.net ;)

posted on samedi 29 mai 2004 17:21

Feedback

# re: Patchage de la librairie RSS.Net 29/05/2004 18:52 Evain Jb
So far away from LA, so far ago from Cisco ?


# re: Patchage de la librairie RSS.Net 31/05/2004 01:06 Vlad
se prenne la tete moi j'ai tout simplement jarté les GMT et cie ;) et pouf plus de problème ;)
mais bon la solution sourceforge est plus adaptée ;) serait temps qu'il le patche le rss.net car ca fait déjà quelques mois que ce bug traine

# re: Patchage de la librairie RSS.Net 07/06/2006 16:33 1188
http://huanxi8.web.fc2.com/chengrenltan.htm
http://huanxi8.web.fc2.com/cherxs.htm
http://huanxi8.web.fc2.com/huangslt.htm
http://huanxi8.web.fc2.com/huangswz.htm
http://huanxi8.web.fc2.com/huangsxs.htm
http://huanxi8.web.fc2.com/huansedy.htm
http://huanxi8.web.fc2.com/jqxdy.htm
http://huanxi8.web.fc2.com/sanjipian.htm
http://huanxi8.web.fc2.com/seqlt.htm
http://huanxi8.web.fc2.com/seqshuo.htm
http://huanxi8.web.fc2.com/seqwz.htm
http://huanxi8.web.fc2.com/shengrendy.htm
http://huanxi8.web.fc2.com/sqdiany.htm
http://huanxi8.web.fc2.com/xady.htm
http://huanxi8.web.fc2.com/xaltan.htm
http://huanxi8.web.fc2.com/zip.htm
http://huanxi8.web.fc2.com/zoug.htm

http://www.angelfire.com/planet/smppdy/3film.htm
http://www.angelfire.com/planet/smppdy/asaxvgt.htm
http://www.angelfire.com/planet/smppdy/ascec.htm
http://www.angelfire.com/planet/smppdy/asgfbgf.htm
http://www.angelfire.com/planet/smppdy/asr53.htm
http://www.angelfire.com/planet/smppdy/crltan.htm
http://www.angelfire.com/planet/smppdy/crxiaos.htm
http://www.angelfire.com/planet/smppdy/dsdd.htm
http://www.angelfire.com/planet/smppdy/jwt520.htm
http://www.angelfire.com/planet/smppdy/mffilm.htm
http://www.angelfire.com/planet/smppdy/mfmovie.htm
http://www.angelfire.com/planet/smppdy/mnsp.htm
http://www.angelfire.com/planet/smppdy/movies.htm
http://www.angelfire.com/planet/smppdy/ouyt.htm
http://www.angelfire.com/planet/smppdy/sexwz.htm
http://www.angelfire.com/planet/smppdy/sqtupian.htm
http://www.angelfire.com/planet/smppdy/sqxs.htm
http://www.angelfire.com/planet/smppdy/ssdd.htm
http://www.angelfire.com/planet/smppdy/story.htm
http://www.angelfire.com/planet/smppdy/uht.htm
http://www.angelfire.com/planet/smppdy/xingdy.htm





# re: Patchage de la librairie RSS.Net 03/07/2006 03:54 ES5TG
http://www.greatestjournal.com/users/ppgirl3/605.html
http://www.greatestjournal.com/users/ppgirl3/438.html
http://www.greatestjournal.com/users/ppgirl3/962.html
http://www.greatestjournal.com/users/ppgirl3/1151.html
http://www.greatestjournal.com/users/ppgirl3/1306.html
http://www.greatestjournal.com/users/ppgirl3/1635.html
http://www.greatestjournal.com/users/ppgirl3/1800.html
http://www.greatestjournal.com/users/ppgirl3/2073.html
http://www.greatestjournal.com/users/ppgirl3/2330.html
http://www.greatestjournal.com/users/ppgirl3/2695.html
http://www.greatestjournal.com/users/ppgirl3/2879.html
http://www.greatestjournal.com/users/ppgirl3/3109.html
http://www.greatestjournal.com/users/ppgirl3/3556.html
http://www.greatestjournal.com/users/ppgirl3/3744.html
http://www.greatestjournal.com/users/ppgirl3/4033.html
http://www.greatestjournal.com/users/ppgirl3/4218.html
http://www.greatestjournal.com/users/ppgirl3/4560.html
http://www.greatestjournal.com/users/ppgirl3/4628.html
http://www.greatestjournal.com/users/ppgirl3/5075.html
http://www.greatestjournal.com/users/ppgirl3/5293.html
http://www.greatestjournal.com/users/ppgirl3/5488.html
http://www.greatestjournal.com/users/ppgirl3/5740.html
http://www.greatestjournal.com/users/ppgirl3/5955.html
http://www.greatestjournal.com/users/ppgirl3/6334.html
http://my.opera.com/007smsdy/homes/files/2541.htm
http://my.opera.com/007smsdy/homes/files/2540.htm
http://my.opera.com/007smsdy/homes/files/2539.htm
http://my.opera.com/007smsdy/homes/files/2538.htm
http://my.opera.com/007smsdy/homes/files/2537.htm
http://my.opera.com/007smsdy/homes/files/2536.htm
http://my.opera.com/007smsdy/homes/files/2535.htm
http://my.opera.com/007smsdy/homes/files/2534.htm
http://my.opera.com/007smsdy/homes/files/2533.htm
http://my.opera.com/007smsdy/homes/files/2532.htm
http://my.opera.com/007smsdy/homes/files/2531.htm
http://my.opera.com/007smsdy/homes/files/2530.htm
http://my.opera.com/007smsdy/homes/files/2529.htm
http://my.opera.com/007smsdy/homes/files/2528.htm
http://my.opera.com/007smsdy/homes/files/2527.htm
http://my.opera.com/007smsdy/homes/files/2526.htm
http://my.opera.com/007smsdy/homes/files/2525.htm
http://my.opera.com/007smsdy/homes/files/2524.htm
http://my.opera.com/007smsdy/homes/files/2523.htm
http://my.opera.com/007smsdy/homes/files/2522.htm
http://my.opera.com/007smsdy/homes/files/2521.htm
http://my.opera.com/007smsdy/homes/files/2520.htm
http://my.opera.com/007smsdy/homes/files/2519.htm
http://my.opera.com/007smsdy/homes/files/2518.htm
http://my.opera.com/007smsdy/homes/files/2517.htm
http://my.opera.com/007smsdy/homes/files/2516.htm
http://my.opera.com/007smsdy/homes/files/2515.htm
http://my.opera.com/007smsdy/homes/files/2514.htm
http://my.opera.com/007smsdy/homes/files/2513.htm
http://my.opera.com/007smsdy/homes/files/2512.htm
http://my.opera.com/007smsdy/homes/files/2511.htm
http://my.opera.com/007smsdy/homes/files/2510.htm
http://my.opera.com/007smsdy/homes/files/2509.htm
http://my.opera.com/007smsdy/homes/files/2508.htm
http://my.opera.com/007smsdy/homes/files/2507.htm
http://my.opera.com/007smsdy/homes/files/2506.htm


# re: Patchage de la librairie RSS.Net 07/12/2006 11:15 qwerty
http://www.galeria-desvirgadas-jovencitas.xxx-culiadas.com II http://www.mpgs-trailers-tetonas.xxx-culiadas.com II http://www.mamma-sexi-fotos.vecchiecalde.com II http://www.download-hardore.vecchiecalde.com II http://www.pic-piedi-selen.strettasesso.com II http://www.fotos-primos-follando.strettasesso.com II http://www.trailer-animalsex.sessobelli.com II http://www.avi-rubias-culiando.sessobelli.com II http://www.gif-luli-bosa.sess0.net II http://www.maracaibo-sexy-sexo.sess0.net II http://www.swedish-dolls.seksi-fitta.com II http://www.swedish-erotica.seksi-fitta.com II http://www.dvd-gordas-calientes.putitanina.com II http://www.lesvico-mpeg.putitanina.com II http://www.download-sbqr.penissesso.com II http://www.mpeg-modelos-tetonas.penissesso.com II http://www.galerias-monster-coock.peniscaldo.com II http://www.sesso-giovane-gay-gratis-vedere.peniscaldo.com II http://www.tunne-nuori.penis-kalu.com II http://www.analt-ansiktsbehandling.penis-kalu.com II http://www.kansla-far.matala-pimppi.com II http://www.vuxen-leksaker-sexigt.matala-pimppi.com II http://www.film-voyeur-girls.kuvia-porno.com II http://www.portrett-pizde-goale.kuvia-porno.com II http://www.trailer-gay-chile.jovencitas-playa.com II http://www.exo-jovenes-folladoras.jovencitas-playa.com II http://www.foto-vecchi-nudi.freeclassicgay.com II http://www.infermiere-scopate-cuadros.freeclassicgay.com II http://www.kuumempi-syrjaanvetaytyva-kuuma-pakkaus.fittaknull.com II http://www.tarve-koulutytto-pissaava.fittaknull.com II http://www.foto-studentesse-sexi.dildosesso.com II http://www.espiando-galerias.dildosesso.com II http://www.alla-pecorina-jpg.dildogigante.com II http://www.mpgs-sexy-collant.dildogigante.com II http://www.mpgs-amateur-tgp.culiadasfilm.com II http://www.gratis-anales-jpg.culiadasfilm.com II http://www.porno-orgias.clip-putita-xxx.com II http://www.clip-sexso-vajinal.clip-putita-xxx.com II http://www.trailer-culos-parados.asiaticosesso.com II http://www.hombres-ardientes-mpeg.asiaticosesso.com II

# re: Patchage de la librairie RSS.Net 22/05/2008 02:47 Komedi
Komedi - Komik - Mizah - Fikra, Fikralar, Fikra oku, Karikatür, Komik Karikatürler, Animasyon,
Komik Animasyonlar, Karikatür, Komik Karikatürler, Oyun, Komik Oyunlar,Video, Video izle, Komik Videolar,
Resim, Komik Resimler, Hikaye oku, Hikayeler http://www.komedi.gen.tr Komik Mizah Sitesi..
Sohbet, Chat, http://www.sohbetkalp.net Muhabbet http://www.chatcix.com Chatcix Sohbet odalari..
http://www.beyazdus.net Mynet Sohbet, Mynet Chat http://www.mynetci.com Mynet Sohbet Odalari..
Fikra, Fikralar, Fikra oku, Hikayeler, Resimler http://www.fikraturk.net Fikra sitesi..

Post Feedback

Title:
Name:
Url:
Comments: 
Enter the code you see: