-
Notifications
You must be signed in to change notification settings - Fork 23
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
Dead timestamp #170
Comments
Спасибо, если это единственное, что умирает на 3.12, то несложно поправить, конечно. Если пришлете PR - добавляйте сразу 3.12 в матрицу тестирования вот сюда и другие workflow. |
if output_format.lower() == "%s":
return value.timestamp() я бы убрал тут lower, т.к. |
These may not be available on all platforms when used with the strftime() method. The ISO 8601 year and ISO 8601 week directives are not interchangeable with the year and week number directives above. Calling strptime() with incomplete or ambiguous ISO 8601 directives will raise a ValueError. The full set of format codes supported varies across platforms, because Python calls the platform C library’s strftime() function, and platform variations are common. To see the full set of format codes supported on your platform, consult the strftime(3) documentation. There are also differences between platforms in handling of unsupported format specifiers.
Смысл в том, что Если вы хотите поддержать вывод всех DateTimeField в таком формате, то можно ввести что-то типа |
https://github.com/best-doctor/restdoctor/blob/master/restdoctor/rest_framework/fields.py#L15
python 3.12 не может использовать
output_format
со значением%s
https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior
У вас умер timestamp
???
The text was updated successfully, but these errors were encountered: