# How to add +10 hours to "NOW" variable

**URL:** <https://developer.sailpoint.com/discuss/t/how-to-add-10-hours-to-now-variable/175839>\
**Category:** SHF Discussion and Questions\
**Tags:** transforms, provisioning, workflows, apis, identity-security-cloud, rules\
**Created:** [September 2, 2025, 11:11pm UTC](https://developer.sailpoint.com/discuss/t/how-to-add-10-hours-to-now-variable/175839 "2025-09-02T23:11:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![msingh39](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@msingh39](https://developer.sailpoint.com/discuss/u/msingh39)\
**Post date:** [September 2, 2025, 11:11pm UTC](https://developer.sailpoint.com/discuss/t/how-to-add-10-hours-to-now-variable/175839/1 "2025-09-02T23:11:49Z")

</div>

Hi Folks,

I have a situation where if user’s end date is “Today“, they are refreshed for their lifecyclestate the next date, not on the same date. Even though we have “requiresperiodicrefresh=true” in transform calculating lifecyclestate. Sailpoint support said to add +10Hrs to the logic when you are calculating “now” during date compare. Something like below but still failing with error “ **Errors** An unexpected error occurred: Text ‘now’ could not be parsed at index 0“

What’s the best way to add +10Hrs to match with our timezone so user processed on same date as their actual End date.

Transform calculating the date with ‘now’:

“postTermUser07”: {  
“attributes”: {  
“secondDate”: {  
“attributes”: {  
“input”: {  
“attributes”: {  
“expression”: “+07d”,  
“input”: {  
“attributes”: {  
“input”: {  
“attributes”: {  
“id”: “Generate TerminationDate”  
},  
“type”: “rule”  
},  
“inputFormat”: “yyyy-MM-dd”,  
“outputFormat”: “ISO8601”  
},  
“type”: “dateFormat”  
},  
“requiresPeriodicRefresh”: true,  
“roundUp”: false  
},  
“type”: “dateMath”  
},  
“inputFormat”: “yyyy-MM-dd’T’HH:mm”,  
“outputFormat”: “ISO8601”  
},  
“type”: “dateFormat”  
},  
“firstDate”: {  
“attributes”: {  
“expression”: “+10h”, ←── This adds 10 hours to now (for GMT+10)  
“input”: “now”,  
“requiresPeriodicRefresh”: true,  
“roundUp”: false  
},  
“type”: “dateMath”  
},  
“inputFormat”: “yyyy-MM-dd’T’HH:mm”,  
“outputFormat”: “ISO8601”,  
“negativeCondition”: “False”,  
“operator”: “lte”,  
“positiveCondition”: “True”  
},  
“type”: “dateCompare”  
}

Current Existing code is :

* * *

–last part, rest is same—-

},  
“negativeCondition”: “False”,  
“operator”: “lte”,  
“positiveCondition”: “True”,  
“firstDate”: “now”  
},

---

<div class="post-metadata">

**Author:** ![schattopadhy](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/schattopadhy/32/8854_2.png) [@schattopadhy](https://developer.sailpoint.com/discuss/u/schattopadhy)\
**Post date:** [September 3, 2025, 5:44am UTC](https://developer.sailpoint.com/discuss/t/how-to-add-10-hours-to-now-variable/175839/2 "2025-09-03T05:44:58Z")

</div>

@msingh39

Please find a below sample transform hope it helps

```auto
 {
       
        "name": "plus6mon",
        "type": "dateCompare",
        "attributes": {
            "negativeCondition": "FALSE",
            "positiveCondition": "TRUE",
            "firstDate": {
                "attributes": {
                    "input": {
                        "attributes": {
                            "input": {
                                "attributes": {
                                    "values": [
                                        {
                                            "attributes": {
                                                "input": {
                                                    "attributes": {
                                                        "name": "endDate"
                                                    },
                                                    "type": "identityAttribute"
                                                },
                                                "end": 10.0,
                                                "begin": 0.0
                                            },
                                            "type": "substring"
                                        },
                                        "2999-12-31"
                                    ]
                                },
                                "type": "firstValid"
                            },
                            "inputFormat": "yyyy-MM-dd",
                            "outputFormat": "ISO8601"
                        },
                        "type": "dateFormat"
                    },
                    "expression": "+170d",
                    "roundUp": true
                },
                "type": "dateMath"
            },
            "operator": "LT",
            "secondDate": "now"
        },
        "internal": false
    }

```

---

<div class="post-metadata">

**Author:** ![msingh39](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@msingh39](https://developer.sailpoint.com/discuss/u/msingh39)\
**Post date:** [September 8, 2025, 12:03am UTC](https://developer.sailpoint.com/discuss/t/how-to-add-10-hours-to-now-variable/175839/3 "2025-09-08T00:03:04Z")

</div>

Thanks. I see it is calculating & adding 6month date. But I want to add 10hours to match the GMT+10 for our region.

Since NOW is in UTC time, I need to add additional 10hours to it so it matches/checked with the exact time zone value.

---

<div class="post-metadata">

**Author:** ![schattopadhy](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/schattopadhy/32/8854_2.png) [@schattopadhy](https://developer.sailpoint.com/discuss/u/schattopadhy)\
**Post date:** [September 8, 2025, 2:29am UTC](https://developer.sailpoint.com/discuss/t/how-to-add-10-hours-to-now-variable/175839/4 "2025-09-08T02:29:38Z")

</div>

> [@msingh39](#):
>
> C time, I need to add additional 10

@msingh39 you can change that to 10h

---

<div class="post-metadata">

**Author:** ![msingh39](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@msingh39](https://developer.sailpoint.com/discuss/u/msingh39)\
**Post date:** [September 8, 2025, 3:10am UTC](https://developer.sailpoint.com/discuss/t/how-to-add-10-hours-to-now-variable/175839/5 "2025-09-08T03:10:33Z")

</div>

Thanks tried it but still the same. It’s not calculating as expected.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [November 7, 2025, 3:11am UTC](https://developer.sailpoint.com/discuss/t/how-to-add-10-hours-to-now-variable/175839/6 "2025-11-07T03:11:32Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
