Quantcast
Channel: SCN : Unanswered Discussions - SAP for Mobile
Viewing all articles
Browse latest Browse all 5512

Agentry conversion of epoch time to human time invalid

$
0
0

Hi;

 

I have a javascript rule that I am using to determine the week start and the week end of the current week. The rule seems to be calculating the values correctly into epoch time, but now the conversion of this epoch time to human time seems to be getting calculated incorrectly when I test via the ATE.

All that I am trying to do is to calculate the week start and week end and store these 2 in 2 different properties. This is what I have implemented this far:

 

WeekStartRule.png

WeekEndRule.png

When I check the results of these two rules in the debug.log file for agentry, I get the correct epoch time, please see below:

ATEDebug.png

So, up to this point everything is correct. The human time that is then displayed on the ATE, when debugging the rule is incorrect, the day and month are correct except for the year, instead of 2014, it says 2045. Please see below, ATE results:

 

TransDebugger.png

Why would the ATE be converting the epoch time to the year 2045? If I take the epoch values for week start and week end and put that in an epoch to human time converter, I get the correct day, month and year, 2014. What settings do I need to maintain here to fix this, what could be causing this issue?

 

Thanks and Regards;

 

Sizo Ndlovu


Viewing all articles
Browse latest Browse all 5512

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>