开发者

moving my app from Windows to Ubuntu

开发者 https://www.devze.com 2023-02-25 11:55 出处:网络
when moving my app from Windows to Ubuntu I get com.google.gson.JsonParseException: java.text.ParseException: Unparseable date: \"13:31:16 13/04/2010\"

when moving my app from Windows to Ubuntu I get

com.google.gson.JsonParseException: java.text.ParseException: Unparseable date: "13:31:16 13/04/2010"

I think it is related to my regional settings . currently my windows system are set on hebrew and on ubuntu i have

locale

LANG=en_US.UTF-8

LC_CTYPE="en_US.UTF-8"

LC_NUMERIC="en_US.UTF-8"

LC_TIME="en_US.UTF-8"

LC_COLLATE="en_US.UTF-8"

LC_MONETARY="en_US.UTF-8"

LC_MESSAGES="en_US.UTF-8"

LC_PAPER="en_US.UTF-8"

LC_NAME="en_US.UTF-8"

LC_ADDRESS="en_US.UTF-8"

LC_TELEPHONE="en_US.UTF-8"

LC_MEASUREMENT="en_US.UTF-8"

LC_IDENTIFICATION="e开发者_如何学Gon_US.UTF-8"

LC_ALL=

Any ideas?


13/04/2010 is likely at fault there: as your LC_TIME has en_US (English, U.S.A.), the system may be expecting the date to be in mm/dd/yyyy format, and Undecimber (the 13th month) may be a bit hard to process ;)

Maybe you want to set your locale to he_IL? (possibly through the Language settings dialog)

0

精彩评论

暂无评论...
验证码 换一张
取 消