From 8ce10da9ce475104864f1f7c3f69c2c0bb8bb4c3 Mon Sep 17 00:00:00 2001 From: Gabriele M Date: Tue, 18 Jul 2017 12:23:43 +0200 Subject: [PATCH] Use UTC timezone for the build dates --- src/org/lineageos/updater/UpdatesActivity.java | 2 +- src/org/lineageos/updater/UpdatesListAdapter.java | 6 +++--- src/org/lineageos/updater/controller/UpdaterService.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/org/lineageos/updater/UpdatesActivity.java b/src/org/lineageos/updater/UpdatesActivity.java index de96ad6f..98cda1f2 100644 --- a/src/org/lineageos/updater/UpdatesActivity.java +++ b/src/org/lineageos/updater/UpdatesActivity.java @@ -120,7 +120,7 @@ public class UpdatesActivity extends AppCompatActivity { getString(R.string.header_android_version, Build.VERSION.RELEASE)); TextView headerBuildDate = (TextView) findViewById(R.id.header_build_date); - headerBuildDate.setText(StringGenerator.getDateLocalized(this, + headerBuildDate.setText(StringGenerator.getDateLocalizedUTC(this, DateFormat.LONG, BuildInfoUtils.getBuildDateTimestamp())); // Switch between header title and appbar title minimizing overlaps diff --git a/src/org/lineageos/updater/UpdatesListAdapter.java b/src/org/lineageos/updater/UpdatesListAdapter.java index 5c7f6a88..e741095f 100644 --- a/src/org/lineageos/updater/UpdatesListAdapter.java +++ b/src/org/lineageos/updater/UpdatesListAdapter.java @@ -110,7 +110,7 @@ public class UpdatesListAdapter extends RecyclerView.Adapter