I'm using this pattern to try and handle a datetime submission from a client:
E MMM dd yyyy HH:mm:ss 'GMT'Z (z)
and this works for me on my local ubuntu machine. A friend of mine tried submitting a form from his windows machine which produced
Wed Jun 24 2015 13:34:22 GMT-0500 (Central Daylight Time)
as the timestamp. This is obviously different than the pattern that I have - but I need to be able to handle the formatting above AND accomodate for dates like this on my ubuntu machine:
Wed Jun 24 2015 13:42:03 GMT-0500 (CDT)
how can I handle this in a pattern using jodatime?
EDIT:
Here is the form I am using in the Playframework - it might be relevant.
val form = Form(mapping(
"beginDate" -> jodaDate("E MMM dd yyyy HH:mm:ss 'GMT'Z (z)"),
"endDate" -> jodaDate("E MMM dd yyyy HH:mm:ss 'GMT'Z (z)")) )