Skip to content

Fixed 'wrong date format' warning#41

Open
NeoGolightly wants to merge 1 commit intovapor-community:mainfrom
NeoGolightly:master
Open

Fixed 'wrong date format' warning#41
NeoGolightly wants to merge 1 commit intovapor-community:mainfrom
NeoGolightly:master

Conversation

@NeoGolightly
Copy link
Copy Markdown

For GoogleCloudDatastoreRequest, GoogleCloudPubSubRequest, GoogleCloudSecretManagerRequest, GoogleCloudStorageRequest and GoogleCloudTranslationRequest
– changed date format from '"yyyy-MM-dd'T'HH:mm:ss.SSSZ"' to 'yyyy-MM-dd'T'HH:mm:ss.SSSXXXXX'
– added Calendar(identifier: .iso8601) to formatter

For GoogleCloudDatastoreRequest, GoogleCloudPubSubRequest, GoogleCloudSecretManagerRequest, GoogleCloudStorageRequest and GoogleCloudTranslationRequest
– changed date format from '"yyyy-MM-dd'T'HH:mm:ss.SSSZ"' to 'yyyy-MM-dd'T'HH:mm:ss.SSSXXXXX'
– added Calendar(identifier: .iso8601) to formatter
@jordanebelanger
Copy link
Copy Markdown
Contributor

@Andrewangeta LGTM, although I must say, ISO8601DateFormatter has been available in Foundation for awhile now, it might worth using these someday.

@NeoGolightly
Copy link
Copy Markdown
Author

@jordanebelanger This is a good idea and much cleaner. Will try this in a few days and see if I get it to work with ISO8601DateFormatter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants