hamzahamidi / ajsf

Angular JSON Schema Form
https://hamzahamidi.github.io/ajsf
MIT License
362 stars 183 forks source link

Date Selection sets date 2 days back #154

Closed sujoydc closed 4 years ago

sujoydc commented 5 years ago

Describe the bug which template:

When you select a date it actually selects selected date - 2 days date.

To Reproduce Steps to reproduce the behavior:

  1. Select a date in date picket e.g.17th Oct. It will actually select 15th Oct.
  2. The data shows 16th Oct. Please see the screen shot.

Desktop (please complete the following information):

image

blained3 commented 4 years ago

Please fix this ASAP! I don't want to have to create a custom date component

hamzahamidi commented 4 years ago

Linked to #69 & https://github.com/hamzahamidi/ajsf/pull/156

hamzahamidi commented 4 years ago

Fix in #189

hamzahamidi commented 4 years ago

Fix available in online demo. Can someone check if it fixes the issue? @sujoydc @blained3

st199200 commented 4 years ago

image

Looks good to me!

blained3 commented 4 years ago

I still see this happening even on your demo page here: https://hamidihamza.com/ajsf/.

Steps to Reproduce:

  1. Go to Demo
  2. Click the calendar icon for the birthday date picker to bring up the calendar picker
  3. Select a date by clicking on it (I clicked on the date 3/20/2020)
  4. After selecting, view the date that is on the form and notice the 2 day difference (My example displayed as 3/18/2020)
  5. The data shown in the Live data — from onChanges(): section will be a day behind the date selected (My example displayed "2020-03-19")

For context, I am in the Mountain Daylight Time Zone and it is 9:30 am March 9, 2020.

github-actions[bot] commented 4 years ago

Stale issue

Krashlog commented 4 years ago

So, just to be clear,this fix wasn't merged? Still having the issue right now.