[TIMOB-20360] ArrowDB Event changing date of event
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Olabosipo Shoroye |
Assignee | Unknown |
Created | 2016-02-06T21:35:04.000+0000 |
Updated | 2018-02-28T19:55:28.000+0000 |
Description
My code looks like in the attachment below and the console.log is printing out the correct date also in the 2nd attachment however when displaying the date on the backend it changes the 2016 to 2006. Please fix quickly as App is soon going live!
Attachments
Hello, We tested this issue and event date is showing as expected. Can you add more information on how you are displaying the date on the backend? *Test Code:*
*Output:*
Thanks.
Your test code is for a different issue I created, please double check
For the date problem all I did was get values from a textfield(dayinput.getValue()) and timepicker as shown in the attached image. The console.log gives me the value shown in the other image attached and I just realised the two values given in the console.log are different, one is 2016-2-9 and the other is Feb 06 2016 (different dates) so somewhere on the backend things are getting messed up. I am using your pre-defined events backend with no modification.
My system is a mac, using your studio.
I will test the events query for $in tomorrow and report back
[~Mr Shakes] I tried to reproduce this issue by selecting a date from picker and creating an event from the selected date as
start_time
. It works as expected.I see that you are providing a formatted string as an input to
start_time
. Before that can you createDate
with the formatted string and print it to see if the formatted string is correct. Your date string should confirm to RFC 2822. See [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse] Try providing your code.I tried using Date picker initially and it worked for Android but it kept setting the date to 1970 for IOS and thats why I switched to the input style method above. I will try the other suggestion and report back soon.
The $in is working for 'name' of event but not for tags, please test for tags.
I used the new Date for the date and it worked thanks, still having problems with the tags for $in