Skip to content

Numeric strings being converted to Datetime objects #881

Description

@sf-surmik

Describe the bug

Some numeric strings are still converted to datetimes. I am aware of 4 digit strings fix in the linked pull request but there are still problems with 7 and 8 digits. Can you please create a general solution for this unfortunate casting?
microsoft/kiota-serialization-json-python#348

Examples:
"20081008" -> 2008-10-08 00:00:00+00:00
"1011317" -> 1011-11-13 00:00:00+00:00
"1150144" -> 1150-05-24 00:00:00+00:00

Expected behavior

"20081008"
"1011317"
"1150144"

How to reproduce

Similar examples here: microsoft/kiota-serialization-json-python#348

SDK Version

No response

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Metadata

Metadata

Assignees

Labels

priority:p1High priority/Major issue but not blocking or Big percentage of customers affected.Bug SLA <=7daystype:bugA broken experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions