Post Closed
217
Views
10
Comments
Solved
Date Time is showing with extra T
Question
Application Type
Reactive

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 ?

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
Solution

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.

2020-09-01 10-42-42
Stefano Valente

In service center you can set your standard datetime format

2024-01-31 05-29-41
Akshay Deshpande

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



2022-01-24 13-22-23
Vaibhav Patidar

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

2024-01-31 05-29-41
Akshay Deshpande

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))

OR

I would like to suggest Raise support case https://success.outsystems.com/Support

may be they will help you in the same 

Thanks and Regards,

Akshay Deshpande

2021-09-06 15-09-53
Dorine Boudry
 
MVP

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

2022-01-24 13-22-23
Vaibhav Patidar

Hi Dorine , Please find the attahced OML with the issue

DatePicker_Issue.oml
2021-09-06 15-09-53
Dorine Boudry
 
MVP

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.

Dorine

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.

DatePicker_Issue.oml
2026-02-26 06-29-24
Rahul
 
MVP

Hi Vaibhav,

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.


Regards

Rahul Sahu

2022-04-08 16-49-21
José Rio

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.

Thanks
JR

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
Solution

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.