You need to sign in to do that
Don't have an account?
Daylight saving issues for standard <ui:inputDateTime> component .
Hi,
I have created a simple lightning component in developer org and added standard <ui:inputDateTime> in this component.(see below lightning component code). The issue is, When I try to select the time 4.PM on 30th sept 2017(one day before daylight saving start ) its showing me 3.00 PM.
lightning component code : -
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >
<aura:attribute name="fromDt" type="datetime"/>
<div>Hello</div>
<div class="slds-input">
<ui:inputDateTime aura:id="startDate" class="dateInput" value="{!v.fromDt}" displayDatePicker="true" />
</div>
</aura:component>
Screenshot :

Can anyone help me to overcome this issue?
Thanks in Advance,
Swapnil.
I have created a simple lightning component in developer org and added standard <ui:inputDateTime> in this component.(see below lightning component code). The issue is, When I try to select the time 4.PM on 30th sept 2017(one day before daylight saving start ) its showing me 3.00 PM.
lightning component code : -
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >
<aura:attribute name="fromDt" type="datetime"/>
<div>Hello</div>
<div class="slds-input">
<ui:inputDateTime aura:id="startDate" class="dateInput" value="{!v.fromDt}" displayDatePicker="true" />
</div>
</aura:component>
Screenshot :
Can anyone help me to overcome this issue?
Thanks in Advance,
Swapnil.
May I suggest you please refer the below link for reference.
- https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_ui_inputDateTime.htm
Hope it will be helpful.Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.
Thanks
Rahul Kumar