Skip to content

Problem while accessing the new XXXDateTimeOffset fields #2575

Closed
@DayLightDancer

Description

@DayLightDancer

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Is this a client library issue or a product issue? We will only be able to assist with issues that pertain to the behaviors of this library. If the issue you're experiencing is due to the behavior of the product itself, please visit the Support page to reach the most relevant engineers.

If the support paths suggested above still do not result in a resolution, please provide the following details.

Environment details

  • Programming language: C#
  • OS: Windows 11
  • Language runtime version: Doesn't matter
  • Package version: "Google.Apis.AndroidManagement.v1" Version="1.62.1.3210" - Latest for the moment

Steps to reproduce

Create an Enrollment Token
The getter of the ExpirationTimestampDateTimeOffset throws a FormatException. This is because the underlined field is in DateTime format ( it is used in the obsolete ExpirationTimestamp field). Casting that field to the DateTimeOffset throws a FormatException

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    externalThis issue is blocked on a bug with the actual product.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions