today_ai_weather/app/models
songtianlun abdb40e4bf refactor: fix: timezone format issue
The commit fixes issues in the `Country` model to properly handle
timezones when it's a string. The change processes the content and
parses it as JSON data, and fixes an issue with JSON format.

- The `format_timezones` method now attempts to parse and reformat
  timezones to prevent potential JSON parsing errors.
- If the conversion to JSON fails, logs the error.
- The code ensures data integrity
  by parsing and reformatting the JSON for timezone data to solve a
  bug.
</commit_message>
</commit_message>
</commit_message>
  This ensures the data is correctly formatted for easier handling
  and prevents potential runtime errors when reading timezone data.
</commit_message>
2025-02-15 17:32:43 +08:00
..
ahoy chore: clean up trailing whitespace and formatting 2025-01-27 00:43:36 +08:00
concerns init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
admin_user.rb chore: clean up code style and unused fixtures 2025-01-20 18:08:55 +08:00
application_record.rb init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
city.rb fix: parse timezones as JSON 2025-02-15 17:21:02 +08:00
country.rb refactor: fix: timezone format issue 2025-02-15 17:32:43 +08:00
region.rb migrate with countries_states_cities_db 2025-02-08 17:42:50 +08:00
state.rb migrate with countries_states_cities_db 2025-02-08 17:42:50 +08:00
subregion.rb migrate with countries_states_cities_db 2025-02-08 17:42:50 +08:00
user.rb feat: enhance user authentication features 2025-02-11 16:18:10 +08:00
weather_art.rb fix: parse timezones as JSON 2025-02-15 17:21:02 +08:00