From 9cf9e7e98044ef85fb72737824e99b7000771423 Mon Sep 17 00:00:00 2001 From: Isira Seneviratne Date: Mon, 2 Nov 2020 09:15:55 +0530 Subject: [PATCH] Call existing constructor in DateWrapper. --- .../org/schabi/newpipe/extractor/localization/DateWrapper.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/localization/DateWrapper.java b/extractor/src/main/java/org/schabi/newpipe/extractor/localization/DateWrapper.java index 0390ee12e..f86efa9b9 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/localization/DateWrapper.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/localization/DateWrapper.java @@ -28,8 +28,7 @@ public class DateWrapper implements Serializable { */ @Deprecated public DateWrapper(@NonNull Calendar calendar, boolean isApproximation) { - offsetDateTime = OffsetDateTime.ofInstant(calendar.toInstant(), ZoneOffset.UTC); - this.isApproximation = isApproximation; + this(OffsetDateTime.ofInstant(calendar.toInstant(), ZoneOffset.UTC), isApproximation); } public DateWrapper(@NonNull OffsetDateTime offsetDateTime) {