merchant-backoffice

ZZZ: Inactive/Deprecated
Log | Files | Refs | Submodules | README

commit 9952a8293246a335e602a4574e18982f69036e84
parent 5a48bd07c637f25e98814b0bb1de3b5f28ee9e24
Author: Sebastian <sebasjm@gmail.com>
Date:   Mon,  6 Dec 2021 11:05:57 -0300

do not show hours if itcannot be modified

Diffstat:
Mpackages/merchant-backoffice/src/components/form/InputDate.tsx | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/merchant-backoffice/src/components/form/InputDate.tsx b/packages/merchant-backoffice/src/components/form/InputDate.tsx @@ -51,14 +51,14 @@ export function InputDate<T>({ if (!value) { strValue = withTimestampSupport ? "unknown" : ""; } else if (value instanceof Date) { - strValue = format(value, "yyyy/MM/dd HH:mm:ss"); + strValue = format(value, "yyyy/MM/dd"); } else if (value.t_ms) { strValue = value.t_ms === "never" ? withTimestampSupport ? "never" : "" - : format(new Date(value.t_ms), "yyyy/MM/dd HH:mm:ss"); + : format(new Date(value.t_ms), "yyyy/MM/dd"); } return (