Inconsistency with numeric strings being converted to Datetime objects #1026
Labels
status:waiting-for-triage
An issue that is yet to be reviewed or assigned
type:bug
A broken experience
Describe the bug
Hi, I'm aware that there has been a previously reported issue with numeric strings being converted to datetimes, but the issue seems to still be appearing sporadically. For example, the following two values are being passed as datetimes
6261201 > DateTime(6261, 7, 20, 0, 0, 0, tzinfo=Timezone('UTC'))
3876001 > DateTime(3876, 1, 1, 0, 0, 0, tzinfo=Timezone('UTC'))
31160705 > DateTime(3116, 7, 5, 0, 0, 0, tzinfo=Timezone('UTC'))
There are other 7 and 8 digit values that this isn't happening for making it tricky for me to pin point commonalities and narrow down the issue.
Expected behavior
For the values to be saved as non-datetime objects
How to reproduce
this is the query
members = await self.client.groups.by_group_id(group_id).members.get()
email_dict = {
member.mail: member.additional_data.get(self.supplier_param)
for member in members.value
}
Note: there are other 7 digit numerical values that are being casted correctly, and I haven't been able to reproduce with any other length.
SDK Version
1.14.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: