|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Rome and Yahoo FinanceHi,
I'm having problems with Yahoo Finance's RSS feeds. They return a pubDate with an "Etc/GMT" timezone: Wed, 1 Jul 2009 14:21:24 Etc/GMT I've figured out how to add an extra datetime mask to rome.properties: datetime.extra.masks=EEE, dd MMM yy HH:mm:ss 'Etc/'z and this handles "Etc/GMT". But this does not handle timezones with offsets, e.g. "Etc/GMT-04:00". I cannot figure out what, if any SDF can be used to parse this format. Has anyone figured this out? Is there a way that I can insert some custom parsing code? Thanks --Joachim |
|
|
Re: Rome and Yahoo Finance2009/7/1 joachimm <joachimm@...>:
> > Hi, > > I'm having problems with Yahoo Finance's RSS feeds. They return a pubDate > with an "Etc/GMT" timezone: > > Wed, 1 Jul 2009 14:21:24 Etc/GMT > > I've figured out how to add an extra datetime mask to rome.properties: > > datetime.extra.masks=EEE, dd MMM yy HH:mm:ss 'Etc/'z > > and this handles "Etc/GMT". > > But this does not handle timezones with offsets, e.g. "Etc/GMT-04:00". I > cannot figure out what, if any SDF can be used to parse this format. > > Has anyone figured this out? Is there a way that I can insert some custom > parsing code? > > Thanks --Joachim > -- > View this message in context: http://www.nabble.com/Rome-and-Yahoo-Finance-tp24293626p24293626.html > Sent from the Rome - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > That doesn't sound right to me [1]. What does feedvalidator [2] think of them? (and for Firefox Users [3]) Cheers, James [1] http://tools.ietf.org/html/rfc822#section-5 [2] http://www.feedvalidator.org/ [3] http://www.feedvalidator.org/register.html --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Rome and Yahoo FinanceThe feed is not valid (and feedvalidator.org agrees), but we still need to let our users add it.
|
|
|
Re: Rome and Yahoo Finance2009/7/1 joachimm <joachimm@...>:
> > The feed is not valid (and feedvalidator.org agrees), but we still need to > let our users add it. > > I've reported it as a bug to Yahoo!; I'll let you know if I hear anything back. I can't help with any workaround, sorry. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Rome and Yahoo FinanceHi Joachim,
it's very strange, but when using to pattern you tried below wird SimpleDateFormat, I can parse the Datestring with and without time offset. (OK, I had to explicitely set Locale.US on SimpleDateFormat for parsing the english Wed instead of my system defaults german locale). Changing the offset also changes the parsed time. Are you getting any exception when trying the pattern you described? Greetings, martin joachimm schrieb: > Hi, > > I'm having problems with Yahoo Finance's RSS feeds. They return a pubDate > with an "Etc/GMT" timezone: > > Wed, 1 Jul 2009 14:21:24 Etc/GMT > > I've figured out how to add an extra datetime mask to rome.properties: > > datetime.extra.masks=EEE, dd MMM yy HH:mm:ss 'Etc/'z > > and this handles "Etc/GMT". > > But this does not handle timezones with offsets, e.g. "Etc/GMT-04:00". I > cannot figure out what, if any SDF can be used to parse this format. > > Has anyone figured this out? Is there a way that I can insert some custom > parsing code? > > Thanks --Joachim --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Rome and Yahoo FinanceI apologize- I think I had a trailing space in my SDF pattern that was causing the unparseable date exception. Same for the rome.properties because I added that file back in to the distribution and I'm now getting (correct) datetimes for yahoo finance.
So adding datetime.extra.masks=EEE, dd MMM yy HH:mm:ss 'Etc/'z to a rome.properties in the classpath gets pubDates for these yahoo finance feeds. Sorry about the confusion, and thanks for the follow up, it caused me to re-evaluate my work. --Joachim
|
| Free embeddable forum powered by Nabble | Forum Help |