File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
packages/amplify_datastore/ios Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,11 @@ import Foundation
8
8
// Stores an ISO 8601 String to be saved to Appsync
9
9
struct FlutterTemporal : TemporalSpec {
10
10
let iso8601 : String
11
+ var timeZone : TimeZone ?
11
12
init ( iso8601String: String ) {
12
13
self . iso8601 = iso8601String
13
14
self . foundationDate = Date ( )
15
+ self . timeZone = TimeZone . current
14
16
}
15
17
16
18
var iso8601String : String {
@@ -21,9 +23,10 @@ struct FlutterTemporal: TemporalSpec {
21
23
// In order to properly adhere to "TemporalSpec" these functions must be implemented
22
24
// This class is solely for transmitting a ISO 8601 Date String to Appsync so these other functions are not needed
23
25
var foundationDate : Date
24
- init ( _ date: Date ) {
26
+ init ( _ date: Date , timeZone : TimeZone ? = TimeZone . current ) {
25
27
self . iso8601 = " "
26
28
self . foundationDate = date
29
+ self . timeZone = timeZone
27
30
}
28
31
29
32
static func now( ) -> FlutterTemporal {
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ The DataStore module for Amplify Flutter.
15
15
s . source = { :git => 'https://github.com/aws-amplify/amplify-flutter.git' }
16
16
s . source_files = 'Classes/**/*'
17
17
s . dependency 'Flutter'
18
- s . dependency 'Amplify' , '1.30.4 '
19
- s . dependency 'AmplifyPlugins/AWSAPIPlugin' , '1.30.4 '
20
- s . dependency 'AmplifyPlugins/AWSDataStorePlugin' , '1.30.4 '
18
+ s . dependency 'Amplify' , '1.30.7 '
19
+ s . dependency 'AmplifyPlugins/AWSAPIPlugin' , '1.30.7 '
20
+ s . dependency 'AmplifyPlugins/AWSDataStorePlugin' , '1.30.7 '
21
21
s . dependency 'Starscream' , '4.0.4'
22
22
s . platform = :ios , '13.0'
23
23
You can’t perform that action at this time.
0 commit comments