Skip to content

Commit

Permalink
IBX-300: removed add offset timezone to date, after changed date fiel…
Browse files Browse the repository at this point in the history
…d to using timezone with timestamp (#1752)
  • Loading branch information
mateuszdebinski authored May 12, 2021
1 parent e96a0dc commit 08ea4f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bundle/Resources/public/js/scripts/fieldType/ezdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
if (actionType === 'create') {
defaultDate.setTime(new Date().getTime());
} else if (actionType === 'edit') {
defaultDate.setTime(defaultDate.getTime() + defaultDate.getTimezoneOffset() * 60 * 1000);
defaultDate.setTime(defaultDate.getTime());
}

updateInputValue(sourceInput, [defaultDate]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
{% block ezdate_field %}
{% apply spaceless %}
{% if not ez_field_is_empty( content, field ) %}
{% set field_value = field.value.date|ez_full_date('UTC') %}
{% set field_value = field.value.date|ez_full_date %}
{{ block( 'simple_block_field' ) }}
{% endif %}
{% endapply %}
Expand Down

0 comments on commit 08ea4f3

Please sign in to comment.