)]}'
{"cloudkitty/rating/common/validations/fields.py":[{"author":{"_account_id":32968,"name":"Juan Larriba","email":"jlarriba@redhat.com","username":"jlarriba"},"change_message_id":"dcb36ce30625cca977657fa2a135042704f06aa5","unresolved":true,"context_lines":[{"line_number":21,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"def _to_local_naive(value):"},{"line_number":25,"context_line":"    \"\"\"Convert a timezone-aware datetime to naive server-local time."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"    Rating rule dates are stored and compared as naive datetimes in the"}],"source_content_type":"text/x-python","patch_set":2,"id":"397def61_2a411c3c","line":24,"updated":"2026-11-23 15:10:11.000000000","message":"I dont think we need a new function, tzutils.utc_to_local(value).replace(tzinfo\u003dNone) does the same thing as this.","commit_id":"1abb0fa5ae0d9398168cf2f860a6f77f050d5988"},{"author":{"_account_id":39646,"name":"Ishaq Sahibole","display_name":"Ishaq Sahibole","email":"ishaq1189@gmail.com","username":"ishaq1189"},"change_message_id":"77d324bcdcd6155aeb89092e398728b174991240","unresolved":false,"context_lines":[{"line_number":21,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"def _to_local_naive(value):"},{"line_number":25,"context_line":"    \"\"\"Convert a timezone-aware datetime to naive server-local time."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"    Rating rule dates are stored and compared as naive datetimes in the"}],"source_content_type":"text/x-python","patch_set":2,"id":"2b802144_a33cd05b","line":24,"in_reply_to":"397def61_2a411c3c","updated":"2026-11-24 06:15:32.000000000","message":"Done. _to_local_naive() is gone; the code now uses tzutils.utc_to_local(value).replace(tzinfo\u003dNone) directly. The small _normalize_dates() loop stays only because both validators (create and update) need it for start and end. Dates without a timezone are left as they are, since utc_to_local would read them as UTC.","commit_id":"1abb0fa5ae0d9398168cf2f860a6f77f050d5988"}]}
