因此,我正在修改开放源代码Google I/O开源应用程序(2010)之一,尝试使用自定义Google电子表格同步应用程序时出现以下错误,同一标题不同的数据(出现同步精细与默认谷歌电子表格)错误解析时间戳
“同步错误:问题解析时间戳:java.text.ParseException:无法解析的日期:‘空2010 10:45 AM -0700’
这是的投掷Java代码错误
private static long parseTime(String date, String time) throws HandlerException {
final String composed = String.format("%s 2010 %s -0700", date, time);
try {
return sTimeFormat.parse(composed).getTime();
} catch (java.text.ParseException e) {
throw new HandlerException("Problem parsing timestamp", e);
}
}
这里是链接s到它试图解析信息(凌动): 我的数据 https://spreadsheets.google.com/feeds/worksheets/0AmvmSNjQXtJFdE1lTlFxVXZCLUN0OFpqa3oyM2d4bEE/public/basic
谷歌数据 http://spreadsheets.google.com/feeds/worksheets/twd6syM493oFqIFWeIm8qGw/public/basic“
我想不通为什么我得到这个错误。任何帮助将不胜感激。
这是我第一次想到,应用程序读入的日期列中,但没有一个是空的。 – user1113888 2012-03-14 16:35:52