Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Bug: for datetime type field, at times getting an error during serialization #132

Open
1 task done
rajasekarshanmugam opened this issue Apr 8, 2023 · 0 comments
Open
1 task done
Labels
bug Something isn't working triage The issue or report is not confirmed

Comments

@rajasekarshanmugam
Copy link

Describe the bug

an object with below fields save as expected, but on deserialization fails with an error:

public DateTime? StartTimeUtc { get; set; }
public DateTime? EndTimeUtc { get; set; }

error throw is: 'Unable to parse DateTimeOffset from 2023-04-07T15:47:59.1047040'

Steps to reproduce

have a nullable date time field on an object and save. At times during deserialization we get the error as described. when using the below code we get an error:

var result = await _db.Select(Thing.From(id), cancellationToken);

'Unable to parse DateTimeOffset from 2023-04-07T15:47:59.1047040'

Expected behaviour

serialize and deserialize with datetime and datetimeoffset work as expected

Surreal.NET driver version

1.0.8

SurrealDB version

1.0.0-beta.9+20230402.5eafebd for linux on x86_64

Is there an existing issue for this?

  • I have searched the existing issues
@rajasekarshanmugam rajasekarshanmugam added bug Something isn't working triage The issue or report is not confirmed labels Apr 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working triage The issue or report is not confirmed
Projects
None yet
Development

No branches or pull requests

1 participant