File tree 6 files changed +24
-11
lines changed
6 files changed +24
-11
lines changed Original file line number Diff line number Diff line change 1
1
# package: sentry changelog
2
2
3
+ ## 0.0.6
4
+
5
+ - use UTC in the ` timestamp ` field
6
+
3
7
## 0.0.5
4
8
5
9
- remove sub-seconds from the timestamp
Original file line number Diff line number Diff line change @@ -50,3 +50,7 @@ main() async {
50
50
51
51
[run_zoned] : https://api.dartlang.org/stable/1.24.1/dart-async/runZoned.html
52
52
[flutter_error] : https://docs.flutter.io/flutter/foundation/FlutterError/onError.html
53
+
54
+ # # Found a bug?
55
+
56
+ Please file it at https://github.com/flutter/flutter/issues/new
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ class SentryClient {
60
60
UuidGenerator uuidGenerator,
61
61
}) {
62
62
httpClient ?? = new Client ();
63
- clock ?? = const Clock ();
63
+ clock ?? = const Clock (_getUtcDateTime );
64
64
uuidGenerator ?? = _generateUuidV4WithoutDashes;
65
65
compressPayload ?? = true ;
66
66
@@ -262,6 +262,10 @@ class SeverityLevel {
262
262
final String name;
263
263
}
264
264
265
+ /// Sentry does not take a timezone and instead expects the date-time to be
266
+ /// submitted in UTC timezone.
267
+ DateTime _getUtcDateTime () => new DateTime .now ().toUtc ();
268
+
265
269
/// An event to be reported to Sentry.io.
266
270
@immutable
267
271
class Event {
Original file line number Diff line number Diff line change 9
9
library version;
10
10
11
11
/// The SDK version reported to Sentry.io in the submitted events.
12
- const String sdkVersion = '0.0.5 ' ;
12
+ const String sdkVersion = '0.0.6 ' ;
13
13
14
14
/// The SDK name reported to Sentry.io in the submitted events.
15
15
const String sdkName = 'dart' ;
Original file line number Diff line number Diff line change 1
1
name : sentry
2
- version : 0.0.5
2
+ version : 0.0.6
3
3
description : A pure Dart Sentry.io client.
4
4
author :
Flutter Authors <[email protected] >
5
5
homepage : https://github.com/flutter/sentry
6
6
7
7
dependencies :
8
- http : " >=0.11.3+13 <2.0.0"
9
- meta : " >=1.0.5 <2.0.0"
8
+ http : " >=0.11.0 <2.0.0"
9
+ meta : " >=1.0.0 <2.0.0"
10
10
quiver : " >=0.25.0 <2.0.0"
11
- stack_trace : " >=1.7.3 <2.0.0"
12
- usage : " >=3.1.1 <4.0.0"
11
+ stack_trace : " >=1.0.0 <2.0.0"
12
+ usage : " >=3.0.0 <4.0.0"
13
13
14
14
dev_dependencies :
15
- args : " >=0.13.7 <2.0.0"
16
- test : " >=0.12.21 <2.0.0"
17
- yaml : " >=2.1.12 <3.0.0"
18
- mockito : " >=2.0.2 <3.0.0"
15
+ args : " >=0.13.0 <2.0.0"
16
+ test : " >=0.12.0 <2.0.0"
17
+ yaml : " >=2.1.0 <3.0.0"
18
+ mockito : " >=2.0.0 <3.0.0"
Original file line number Diff line number Diff line change 3
3
set -e
4
4
set -x
5
5
6
+ pub get
6
7
dartanalyzer --strong --fatal-warnings ./
7
8
pub run test --platform vm
8
9
dartfmt -n --set-exit-if-changed ./
You can’t perform that action at this time.
0 commit comments