diff --git a/app/src/main/java/org/schabi/newpipe/error/ErrorActivity.java b/app/src/main/java/org/schabi/newpipe/error/ErrorActivity.java index 9445c53fd41..69c15836c9a 100644 --- a/app/src/main/java/org/schabi/newpipe/error/ErrorActivity.java +++ b/app/src/main/java/org/schabi/newpipe/error/ErrorActivity.java @@ -22,11 +22,11 @@ import org.schabi.newpipe.BuildConfig; import org.schabi.newpipe.R; import org.schabi.newpipe.databinding.ActivityErrorBinding; -import org.schabi.newpipe.util.DateTimeHelper; import org.schabi.newpipe.util.Localization; import org.schabi.newpipe.util.ThemeHelper; import org.schabi.newpipe.util.external_communication.ShareUtils; +import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.util.Arrays; import java.util.stream.Collectors; @@ -107,7 +107,7 @@ protected void onCreate(final Bundle savedInstanceState) { // important add guru meditation addGuruMeditation(); - currentTimeStamp = DateTimeHelper.currentDateToIsoDateFormat(); + currentTimeStamp = LocalDateTime.now().format(DateTimeFormatter.ISO_DATE_TIME); activityErrorBinding.errorReportEmailButton.setOnClickListener(v -> openPrivacyPolicyDialog(this, "EMAIL")); diff --git a/app/src/main/java/org/schabi/newpipe/util/DateTimeHelper.java b/app/src/main/java/org/schabi/newpipe/util/DateTimeHelper.java deleted file mode 100644 index ae1f2e94c1b..00000000000 --- a/app/src/main/java/org/schabi/newpipe/util/DateTimeHelper.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.schabi.newpipe.util; - -import java.time.LocalDateTime; -import java.time.format.DateTimeFormatter; - -public final class DateTimeHelper { - private static final String TAG = DateTimeHelper.class.getSimpleName(); - - private DateTimeHelper() { - //no instance - } - - /** - * @return the current date in ISO format. - */ - public static String currentDateToIsoDateFormat() { - final LocalDateTime currentDate = LocalDateTime.now(); - return currentDate.format(DateTimeFormatter.ISO_DATE_TIME); - } -}