Changeset 7c13fb2


Ignore:
Timestamp:
Jun 6, 2015 9:24:46 AM (5 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
55e36ee
Parents:
663ccb7
Message:

Android's SimpleDateFormat? doesn't support XXX at any API

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/news/RFC3339Date.java

    r663ccb7 r7c13fb2  
    3030    private static final String TZF1, TZF2;
    3131    static {
    32         if (SystemVersion.isJava7()) {
     32        // Android's SimpleDateFormat doesn't support XXX at any API
     33        if (SystemVersion.isJava7() && !SystemVersion.isAndroid()) {
    3334            // ISO 8601
    3435            // These handle timezones like +1000, +10, and +10:00
     
    8283        // for Java 6 where we don't have the 'X' format
    8384        int len = s.length();
    84         if (!SystemVersion.isJava7() &&
     85        if ((!SystemVersion.isJava7() || SystemVersion.isAndroid()) &&
    8586            s.charAt(len - 1) != 'Z' &&
    8687            s.charAt(len - 3) == ':' &&
  • history.txt

    r663ccb7 r7c13fb2  
     12015-06-06 str4d
     2 * newsxml: Don't use XXX for parsing dates on Android
     3
    142015-06-04 str4d
    25 * i2ptunnel:
Note: See TracChangeset for help on using the changeset viewer.