what-the-bank/sources/com/google/firebase/firestore/bundle/BundleSerializer.java

24 lines
932 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.firebase.firestore.bundle;
import com.google.firebase.firestore.remote.RemoteSerializer;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.Locale;
import java.util.TimeZone;
/* loaded from: classes2.dex */
public class BundleSerializer {
private final RemoteSerializer remoteSerializer;
private final SimpleDateFormat timestampFormat;
public BundleSerializer(RemoteSerializer remoteSerializer) {
this.remoteSerializer = remoteSerializer;
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", Locale.ENGLISH);
this.timestampFormat = simpleDateFormat;
GregorianCalendar gregorianCalendar = new GregorianCalendar(TimeZone.getTimeZone("UTC"));
gregorianCalendar.setGregorianChange(new Date(Long.MIN_VALUE));
simpleDateFormat.setCalendar(gregorianCalendar);
}
}