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.
2 parents 79b7b67 + 9b33c9e commit eae7eeaCopy full SHA for eae7eea
world_time_app/lib/services/world_time.dart
@@ -21,7 +21,7 @@ class WorldTime {
21
22
// get properties from json
23
String datetime = data['datetime'];
24
- String offset = data['utc_offset'].substring(1,3);
+ String offset = data['utc_offset'].substring(0,3);
25
26
// create DateTime object
27
DateTime now = DateTime.parse(datetime);
@@ -38,4 +38,4 @@ class WorldTime {
38
39
}
40
41
-}
+}
0 commit comments