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

how to solve inconsistency of date and time in business object and UI while using oj-date-time?

Accepted answer
73
Views
9
Comments

Summary:

At the time storing date in business object, date & time stored like

but in UI, oj-date-time component added UTC+5:30 , displays like

so how to display date time in UI exactly as it stored in Business object

Content (required):


Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

 <template slot="Last Updated Date">

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

          converter='{"type": "datetime", "options": {"pattern":"dd/MM/yyyy hh:mm a"}}'></oj-input-date-time>

</template>

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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