Use UTC timezone for the build dates

This commit is contained in:
Gabriele M
2017-07-18 12:23:43 +02:00
parent fecd837b70
commit 8ce10da9ce
3 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -110,7 +110,7 @@ public class UpdatesListAdapter extends RecyclerView.Adapter<UpdatesListAdapter.
}
private void handleActiveStatus(ViewHolder viewHolder, UpdateDownload update) {
String buildDate = StringGenerator.getDateLocalized(mContext,
String buildDate = StringGenerator.getDateLocalizedUTC(mContext,
DateFormat.MEDIUM, update.getTimestamp());
String buildInfoText = mContext.getString(R.string.list_build_version_date,
BuildInfoUtils.getBuildVersion(), buildDate);
@@ -167,7 +167,7 @@ public class UpdatesListAdapter extends RecyclerView.Adapter<UpdatesListAdapter.
}
private void handleNotActiveStatus(ViewHolder viewHolder, UpdateDownload update) {
String buildDate = StringGenerator.getDateLocalized(mContext,
String buildDate = StringGenerator.getDateLocalizedUTC(mContext,
DateFormat.LONG, update.getTimestamp());
String buildVersion = mContext.getString(R.string.list_build_version,
BuildInfoUtils.getBuildVersion());
@@ -362,7 +362,7 @@ public class UpdatesListAdapter extends RecyclerView.Adapter<UpdatesListAdapter.
return null;
}
String buildDate = StringGenerator.getDateLocalized(mContext,
String buildDate = StringGenerator.getDateLocalizedUTC(mContext,
DateFormat.MEDIUM, update.getTimestamp());
String buildInfoText = mContext.getString(R.string.list_build_version_date,
BuildInfoUtils.getBuildVersion(), buildDate);

View File

@@ -364,7 +364,7 @@ public class UpdaterService extends Service {
}
private void setNotificationTitle(UpdateDownload update) {
String buildDate = StringGenerator.getDateLocalized(this,
String buildDate = StringGenerator.getDateLocalizedUTC(this,
DateFormat.MEDIUM, update.getTimestamp());
String buildInfo = getString(R.string.list_build_version_date,
BuildInfoUtils.getBuildVersion(), buildDate);