Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed 'wrong date format' warning #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

NeoGolightly
Copy link

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
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
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