FAQ  •  Register  •  Login

Unparseable date Exception

<<

mike_metro

Serviio lover

Posts: 55

Joined: Sat Jan 14, 2012 4:06 am

Post Wed Feb 08, 2012 3:21 am

Unparseable date Exception

Can anyone assist with the following http://forum.serviio.org/viewtopic.php?f=20&t=4820. Someone is getting an error on the Escapist plugin and can't reproduce it. They are receiving an Unparseable date exception for "Wed, 01 Feb 2012 22:00:00 GMT". I am using Date.parse("EEE, dd MMM yyyy HH:mm:ss z", it.pubDate.text()). It seems to test fine on my Windows PC and Linux VM. Are there any localization or OS differences that could cause this issue?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Feb 08, 2012 12:31 pm

Re: Unparseable date Exception

Looks like you'll have to provide US Locale to the date format instance

  Code:
new SimpleDateFormat(String pattern, Locale locale)
<<

mike_metro

Serviio lover

Posts: 55

Joined: Sat Jan 14, 2012 4:06 am

Post Wed Feb 08, 2012 6:57 pm

Re: Unparseable date Exception

Thanks Zip. I'll try this when I get home.

zip wrote:Looks like you'll have to provide US Locale to the date format instance

  Code:
new SimpleDateFormat(String pattern, Locale locale)
<<

mike_metro

Serviio lover

Posts: 55

Joined: Sat Jan 14, 2012 4:06 am

Post Sun Feb 12, 2012 7:08 pm

Re: Unparseable date Exception

Worked. Thanks Zip.

Return to Plugin development

Who is online

Users browsing this forum: No registered users and 12 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.