We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc201ee commit c98610bCopy full SHA for c98610b
lib/src/auth/user_record.dart
@@ -15,10 +15,11 @@ final _decoder = SnapshotDecoder()
15
..register<Snapshot, MultiFactorSettings>((s) => MultiFactorSettings._(s))
16
..register<Snapshot, MultiFactorInfo>((s) => PhoneMultiFactorInfo._(s))
17
..register<String, DateTime>(
18
- (v) => DateTime.fromMicrosecondsSinceEpoch((num.parse(v) * 1000).toInt()),
+ (v) => DateTime.fromMicrosecondsSinceEpoch(
19
+ (num.parse(v) * 1000 * 1000).toInt()),
20
format: RegExp('epoch'))
21
- (v) => DateTime.fromMicrosecondsSinceEpoch(num.parse(v).toInt()),
22
+ (v) => DateTime.fromMicrosecondsSinceEpoch((num.parse(v) * 1000).toInt()),
23
format: RegExp('epoch:millis'))
24
..seal();
25
0 commit comments