Skip to content

Commit

Permalink
Gix #131
Browse files Browse the repository at this point in the history
Fix cross-platform compatibility by removing unsupported strftime flag
  • Loading branch information
g-battaglia committed Aug 26, 2024
1 parent ce3cbc8 commit 7b8c90e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kerykeion/charts/kerykeion_chart_svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ def _create_template_dictionary(self) -> ChartTemplateDictionary:

# Set date time string
dt = datetime.fromisoformat(self.user.iso_formatted_local_datetime)
custom_format = dt.strftime('%Y-%-m-%-d %H:%M [%z]') # Note the use of '-' to remove leading zeros
custom_format = dt.strftime('%Y-%m-%d %H:%M [%z]')
custom_format = custom_format[:-3] + ':' + custom_format[-3:]
template_dict["stringDateTime"] = f"{custom_format}"

Expand Down

0 comments on commit 7b8c90e

Please sign in to comment.