Database showing offset value of date time variable

I have a date time issue. In my interface a user can select a date and time. Lets use the following example: Start Date 08/04/2016 time 09:00 AM End Date is 08/30/2016 11:59 PM. When viewed in the pv this time is shown. When viewed in the DB once saved it is adding 4 hours so in the DB its 13:00 and 03:59. The calendar and internationalization are both set to UTC-05:00 Eastern Time (America/New_York. How can I get the values to save in the DB as what is entered in the interface form?

Also, from the form we create a docx file that is downloadable. In these time fields they also show the +4 hours time. How do I get it to show the actually selected time.

Thanks.

OriginalPostID-227489

OriginalPostID-227489

  Discussion posts and replies are publicly visible

Parents
  • load(
    local!selectedRecord,
    <other codes>
    a!dateTimeField(
    label:"Date : ",
    labelPosition:"ADJACENT",
    value:/*if(local!selectedRecord.ID="",gmt(*/local!selectedRecord.Date/*),rule!ACP_ConvertTextDateTimeToDate(local!selectedRecord.Date))*/,
    saveInto:/*a!save(*/local!selectedRecord.Date,/*save!value),*/
    required:if(local!selectedRecord.ID="",true(),false()),
    readOnly: if(local!selectedRecord.ID="",false(),true())
    ),
    )
Reply
  • load(
    local!selectedRecord,
    <other codes>
    a!dateTimeField(
    label:"Date : ",
    labelPosition:"ADJACENT",
    value:/*if(local!selectedRecord.ID="",gmt(*/local!selectedRecord.Date/*),rule!ACP_ConvertTextDateTimeToDate(local!selectedRecord.Date))*/,
    saveInto:/*a!save(*/local!selectedRecord.Date,/*save!value),*/
    required:if(local!selectedRecord.ID="",true(),false()),
    readOnly: if(local!selectedRecord.ID="",false(),true())
    ),
    )
Children
No Data