Hi,
I am using a Date Picker widget provided by OutsystemsUI and After Platform is upgraded the Date time is coming with the extra T as shown below
Before platform upgrade it was like this
Can Anyone help with this ?
This behaviour is a confirmed bug in OutSystems UI, registered by OutSystems as ROU-2961. It will be fixed in the next release of OutSystems UI.
I have marked this answer as solution, and unmarked the other solutions, as those were workarounds, not actual fixes that should be referenced in the future.
In service center you can set your standard datetime format
Hello Vaibhav,
If you are using the date picker then may be still you are taking the variable of that input as datetime instead of using that used text data type because due to this its considering OutSystems date widget instead of date picker
and if you want default date widget used then you will change the format from service center but that time don't used date picker
in date picker there is date format so you will give what you want as per your requirement
Thanks and Regards,
Akshay Deshpande
Thanks for the reply Akshay,
I want to use the input variable as the DateTime. Is there any way i can remove the Extra T by keeping input variable as DateTime and using Date picker
Firstly vaibhav date time and datepicker its not working together it will override-second thing Icheck your OML and publish but still not get the problem which you are got.
URL with your code check below
https://akshayproject.outsystemscloud.com/DatePicker_Issue/DatePicker?_ts=637776867773317089
(give your URL with that so we will check on screen (create one anonymous screen with same issue))
ORI would like to suggest Raise support case https://success.outsystems.com/Support
may be they will help you in the same
Hi Vaibhav,
can you provide a small demo oml with the problem in it, I am trying to recreate, but after upgrading to OutsystemsUI 2.8.0, my datetime inputs still looks OK. I tried several combinations, and no unwanted T appears.
Dorine
Hi Dorine , Please find the attahced OML with the issue
Ok,
I can recreate the same problem.
I only did tests with local dates, and that doesn't show this behaviour, but when a date comes back from an aggregate, and before actually using the datepicker to pick another date, there is an extra T.
Other problem : when aggregate comes back with zero rows fetched, date shown is sometimes empty, instead of applying what you have defined as initial date in your picker widget.
So I tried reverting to previous version, but then i get same problems. Also either with version 2.8.0 or version 2.7.2, the problem happens most of the time, but sometimes not. So I would say, this is definitely buggy, but I'm not sure it is caused by version 2.8.0.
Other than reporting this in a bug report, as a workaround, you can try using local variables to bind the input field to.
My guess is that the bug is somewhere in the code that processes the date coming back from the aggregate.
See attached I expanded on your example oml, and placed the fetch on demand, which shows that the problem happens somewhere after executing the aggregate.
I have check that issue with date picker and format with date time is not working.
for work around you can use this JavaScript code in OnRender Action of screen or block .
var str=document.getElementById($parameters.widgetId).value;
document.getElementById($parameters.widgetId).value=str.replace('T',' ');
where widget id is date input.
It solve your problem.
Rahul Sahu
Hi @Vaibhav Patidar!This is happening because you're using a DateTime type input, and since that input is been used by DatePicker where we're setting through javascript that it should be text type, during that process platform will ends up on this DateTime format.With this in mind we added a way to deal with this automatically and It will be available on our next release.ThanksJR