Skip to content

Commit

Permalink
fix: am/pm
Browse files Browse the repository at this point in the history
  • Loading branch information
robtpaton committed Dec 29, 2024
1 parent 4332dce commit 8a22ebb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion responses/ar/HassGetCurrentTime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ responses:
default: >
{% set minute_str = '{0:02d}'.format(slots.time.minute) %}
{% if slots.time.hour <= 12: %}
{% if slots.time.hour < 12: %}
{{ slots.time.hour }}:{{ minute_str }} صباحا
{% else: %}
{{ slots.time.hour - 12 }}:{{ minute_str }} مساءا
Expand Down
2 changes: 1 addition & 1 deletion responses/en/HassGetCurrentTime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ responses:
default: >
{% set minute_str = '{0:02d}'.format(slots.time.minute) %}
{% if slots.time.hour <= 12: %}
{% if slots.time.hour < 12: %}
{{ slots.time.hour }}:{{ minute_str }} AM
{% else: %}
{{ slots.time.hour - 12 }}:{{ minute_str }} PM
Expand Down
2 changes: 1 addition & 1 deletion responses/he/HassGetCurrentTime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ responses:
default: >
{% set minute_str = '{0:02d}'.format(slots.time.minute) %}
{% if slots.time.hour <= 12: %}
{% if slots.time.hour < 12: %}
{{ slots.time.hour }}:{{ minute_str }} לפנות בוקר
{% else: %}
{{ slots.time.hour - 12 }}:{{ minute_str }} אחרי הצהריים
Expand Down
2 changes: 1 addition & 1 deletion responses/th/HassGetCurrentTime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ responses:
HassGetCurrentTime:
default: "TODO: {% set minute_str = '{0:02d}'.format(slots.time.minute) %}
{% if slots.time.hour <= 12: %} {{ slots.time.hour }}:{{ minute_str }} AM
{% if slots.time.hour < 12: %} {{ slots.time.hour }}:{{ minute_str }} AM
{% else: %} {{ slots.time.hour - 12 }}:{{ minute_str }} PM {% endif %}
"
2 changes: 1 addition & 1 deletion responses/zh-cn/HassGetCurrentTime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ responses:
default: >
{% set minute_str = '{0:02d}'.format(slots.time.minute) %}
{% if slots.time.hour <= 12: %}
{% if slots.time.hour < 12: %}
上午{{ slots.time.hour }}点{{ minute_str }}分
{% else: %}
下午{{ slots.time.hour - 12 }}点{ minute_str }}分
Expand Down
2 changes: 1 addition & 1 deletion responses/zh-hk/HassGetCurrentTime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ responses:
default: >
{% set minute_str = '{0:02d}'.format(slots.time.minute) %}
{% if slots.time.hour <= 12: %}
{% if slots.time.hour < 12: %}
上晝 {{ slots.time.hour }}點{{ minute_str }}分
{% else: %}
下晝 {{ slots.time.hour - 12 }}點{{ minute_str }}分
Expand Down

0 comments on commit 8a22ebb

Please sign in to comment.