You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Problems with date conversion

Accepted answer
73
Views
4
Comments
edited Mar 2, 2023 1:42PM in Visual Builder 4 comments

Summary:


Content (required):

The oj-input-date component is delaying the date by one day in the view. The problem also occurs when I use the same component in a form to update records.

My time zone in Brazil is UTC-3

In the SDP object the information is correct:

When I view it in the table, there is a delay of 1 day:

Template I used in the table:

<template slot="efetivoDe">

      <oj-input-date value='[[typeof $current.data === "string" ? $current.data : null]]'

        converter='{"type": "datetime", "options": {"pattern":"dd/MM/yyyy"}}' readonly="true">

      </oj-input-date>

    </template>


How could I solve this problem?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!