# Time Differane calculation Issues "wrong current Time"

**URL:** <https://forums.losant.com/t/time-differane-calculation-issues-wrong-current-time/4597>\
**Category:** Help\
**Tags:** workflow, timestamp\
**Created:** [June 17, 2022, 5:37pm UTC](https://forums.losant.com/t/time-differane-calculation-issues-wrong-current-time/4597 "2022-06-17T17:37:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammed\_Alquraini](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@Mohammed\_Alquraini](https://forums.losant.com/u/Mohammed_Alquraini)\
**Post date:** [June 17, 2022, 5:37pm UTC](https://forums.losant.com/t/time-differane-calculation-issues-wrong-current-time/4597/1 "2022-06-17T17:37:52Z")

</div>

hi, i have a workflow that calculates the time difference between current time and the stored time value. the issue is that the result was not correct, digging into the issue i found that the current time used in the time calculation is not correct and it will freeze, like in the attached screen shots couple of minutes apart. how can i resolve this?  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/b/b524ec46df2c719c2a75be666a55be307cde0f6a.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/9/943751a9e4a12e691921dccf0c9c945246c4d552.png)  
[prayer-time-trigger-develop.flow](https://forums.losant.com/uploads/short-url/sTk9judwi0dFcs4LfDVM7jODHGg.flow) (6.9 KB)

---

<div class="post-metadata">

**Author:** ![Sebastian\_Turner](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/sebastian_turner/32/4024_2.png) [@Sebastian\_Turner](https://forums.losant.com/u/Sebastian_Turner)\
**Post date:** [June 17, 2022, 7:30pm UTC](https://forums.losant.com/t/time-differane-calculation-issues-wrong-current-time/4597/2 "2022-06-17T19:30:27Z")

</div>

Take a look at the format you’re using in the Time Gen node under Result Format Template (`working.time`).  
In `HH:MM Z`, the `MM` will return the current calendar month (in this case, since it’s currently June, it will return `06`).  
Presumably, you want to be using `mm` which returns current minutes.  
Further details on MomentJS formatting: [Moment.js | Docs](https://momentjs.com/docs/#/displaying/format/)

Let us know if you have any further questions on this project - we’re happy to help!
