Add minutes does not add time

Hi

I am currently working on mobile application.

I am converting epoch time which I am getting from API to readable time and date by using Extended DateTime forge component.I am using function unix _milliseconds_to_datetime. 

 It is correctly giving me date and time but in GMT.

I want it in IST, so I am adding 330 MINUTES using ADDMINUTES(). But only date is increasing.Time become 00:00:00. 

How to rectify this?

Solution

Hi Shubham,

I implemented the AddMinutes() built-in action and it is working as expected:



Check this: https://sbsam.outsystemscloud.com/Sample_App/AddTimeScreen.aspx


Could you please check the data type of the attribute or Variable, it should be DateTime data type.


Regards,

Benjith Sam

Solution

Benjith Sam wrote:

Hi Shubham,

I implemented the AddMinutes() built-in action and it is working as expected:



Check this: https://sbsam.outsystemscloud.com/Sample_App/AddTimeScreen.aspx


Could you please check the data type of the attribute or Variable, it should be DateTime data type.


Regards,

Benjith Sam

Yup. Variable was of type date instead of DateTime.

Thanks.


 What Benjith said.

Your variables are called TempLabelDate and TempTime. Their types by default are Date and Time.

From what you are saying, you wanted a DateTime.

Just change that and it should work.