I have a page where a patient enters the appointment date for consulting, I m showing a dateTime input fields as

<apex:input type="datetime-local" value="{!appointmentDate1}" styleClass="bRadius slds-input"/>

But this tag is directly saving whatever the patient gives into database, Simple its saving the local time as GMT, the patient is giving time in local time zone, So now if I open the record then I see different time, Its converting the time into user's time zone.

How can I solve this ?


Sorry, I don't have the reputation to comment. You may want to check here, making the offset visible to the page: Error Apex:input datetime-local


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.