Always use local timezone for parsing date
Use local time zone to be in line with entry in phonesky mainline module. Test: Rebuild Bug: 143357811 Change-Id: I1ecf57ec7952cff580af932e58c453622d4536f0
This commit is contained in:
@@ -111,7 +111,7 @@ public class MainlineModuleVersionPreferenceController extends BasePreferenceCon
|
||||
try {
|
||||
final SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern,
|
||||
Locale.getDefault());
|
||||
simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
|
||||
simpleDateFormat.setTimeZone(TimeZone.getDefault());
|
||||
return Optional.of(simpleDateFormat.parse(text));
|
||||
} catch (ParseException e) {
|
||||
// ignore and try next pattern
|
||||
|
Reference in New Issue
Block a user