Skip to content

Commit

Permalink
Fix milliseconds (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFes authored Nov 21, 2023
1 parent 89e9787 commit 70d7457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relative_time_plus.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
{%- set week = week | bool(true) -%}
{%- set time = time | bool(true) -%}
{%- set abbr = abbr | bool(false) or verbose | bool(false) -%}
{%- set time_parts = time_split(date, compare_date, month, week, time) | from_json -%}
{%- set time_parts = time_split(date, compare_date, month, week, millisecond, time) | from_json -%}
{#- find first non zero time period #}
{%- set always_return = 'millisecond' if millisecond else 'second' if time else 'day' -%}
{%- set first = time_parts.items() | selectattr('1') | map(attribute='0') | first | default(always_return) -%}
Expand Down

0 comments on commit 70d7457

Please sign in to comment.