-
Notifications
You must be signed in to change notification settings - Fork 531
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
feat: Utility methods to support google-datetime format (and eventually others) #2432
Conversation
Note: only the first commit will be merged. The second is for demonstration purposes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. One question, I'm not even sure about that though.
private string _timestampRaw; | ||
|
||
private object _timestamp; | ||
|
||
/// <summary>The timestamp when this issue appeared.</summary> | ||
[Newtonsoft.Json.JsonPropertyAttribute("timestamp")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we were to move this one to TimestampDateTimeOffset (by specifying to use GetDateTimeOffsetFromString to serialize it) would that give us the failure right before performing the request instead of having to wait for the server to do that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so - but we'd have to also add a converter (either specified in the property or in general) to make sure that the DateTimeOffset
is serialized correctly. It would work, but there'd be more risk of problems elsewhere IMO.
4057010
to
0025082
Compare
Features - googleapis#2432 More utilities for date/time parsing.
Features - #2432 More utilities for date/time parsing.
Updates support version: 1.61.0 - beta02 -> 1.61.0 Features - Improvements for date/time parsing. - googleapis#2441 - googleapis#2432 - googleapis#2429 - googleapis#2435 PKCE support. - googleapis#2394 Which improves impersonation support. - googleapis#2349 and googleapis#2379 Which improve error reported when ADC is not configured.
Movement towards #2040, but doesn't finish fixing it yet.