我正在尝试将 pubDate 从 rss 解析为 DateTime 对象。
String parseFormat = "ddd, dd MMM yyyy HH:mm:ss zzz";
this.pubDate = new DateFormat(parseFormat).parse(json['pubDate']);
这会引发错误
尝试从 2020 年 5 月 14 日星期四 09:40:15 EST 在位置 0 处读取 ddd
变成
String parseFormat = "E, dd MMM yyyy HH:mm:ss zzz";
this.pubDate = new DateFormat(parseFormat).parse(json['pubDate']);
从文档中。