Time Zone

164 views
Skip to first unread message

mati...@gmail.com

unread,
Jul 20, 2018, 4:00:12 PM7/20/18
to Fujitsu RunMyProcess Developer Community
Time zone:

I need to change my time zone:
Actually I returned the date with +3 hours difference.
Attached capture

aa.PNG
bb.PNG

Gunjan Rajgure

unread,
Jul 21, 2018, 4:54:23 AM7/21/18
to Fujitsu RunMyProcess Developer Community
Hello There,

You can try following Freemarker code to do this.

<#assign date = now('dd:MM:YYYY')>   
<#assign time = now('HH:mm:ss zzz')>
<#assign hr = (time?split(':')[0])?number+3>   <#-- Here Time is separated and added 3 into it -->
<#assign mm = (time?split(':')[1])>                  <#--  Separated Minutes   -->
<#assign ss = (time?split(':')[2])>                    <#--   Separated Seconds   -->
${date}
${time}
${hr}
${mm}
${ss}
${date} ${hr}:${mm}:${ss}   <#-- Combined date & time with time zone  -- >


Do feel free to contact us for any other query you have.


Thanks & Regards,
Gunjan Rajgure
Fujitsu RunMyProcess Support


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/2e9bf519-23b3-456a-80f1-d9a77585f520%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.



--
Thanks & Regards
Gunjan Rajgure
Fujitsu - RunMyProcess Support

Gunjan Rajgure

unread,
Jul 21, 2018, 4:58:31 AM7/21/18
to Fujitsu RunMyProcess Developer Community
Hello,

You can see the result in attached screen print.


Regards,
Gunjan Rajgure
Fujitsu RunMyProcess Support
timezone_test.JPG
Message has been deleted
Message has been deleted

mati...@gmail.com

unread,
Jul 23, 2018, 8:56:32 AM7/23/18
to Fujitsu RunMyProcess Developer Community
thank you very much.
I could solve it

ah...@qualitydistribution.com

unread,
Jul 24, 2018, 10:49:21 AM7/24/18
to Fujitsu RunMyProcess Developer Community
What about daylight savings? I would have to manually update this after DST. Any other way of doing this?
> To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.

Vitthal Jivrag

unread,
Jul 30, 2018, 9:33:04 PM7/30/18
to suppor...@runmyprocess.com
Hi ,

Apology for delay in response 
you can use JavaScript locals for daylight savings Please find attached capture for more information.

Do feel free to contact us for any other query you have.

Regards, 
Vitthal Jivrag 
RunMyProcess Support

To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
Screenprint.PNG

Aeon Hale

unread,
Jul 31, 2018, 8:23:58 AM7/31/18
to Fujitsu RunMyProcess Developer Community
Very cool.  I was unaware that I could use JS inside of a process like that.  Thank you Vitthal!

You received this message because you are subscribed to a topic in the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/o_lOkgQygyc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum+unsubscribe@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.

Aeon Hale

unread,
Jul 31, 2018, 1:07:52 PM7/31/18
to Fujitsu RunMyProcess Developer Community
Vitthal, this doesn't seem to give me the timezone offset.  This just formats the string according to en-US.  If you look at the docs for toLocaleString, you should be able to pass in options including "timeZone".  When I do this in Chrome, it works great.  If I augment the code you sent me, RMP does not change the timeZone offset.



Any thoughts to why?

Thank you,

Aeon

Vitthal Jivrag

unread,
Aug 1, 2018, 5:03:42 PM8/1/18
to suppor...@runmyprocess.com
Hi,

Sorry for inconvenience. 
Unfortunately browsers are not understand timezone other than UTC.
Browsers use International API, and is built-in, in most newer browsers.
that's why its working fine in chrome, but in RMP not changing the timezone offset.
For handle this issue you just need to pass offset value by country timezone.

Please find attached screen-print for more information. 

For ex: In given image we are passing offset for japan so in result we can see the time of japan.

You can find timezone offset by country with given link :

Do feel free to contact us should you have any further queries. 

Regards, 
Vitthal Jivrag 
RunMyProcess Support
Screen-Print.PNG
Reply all
Reply to author
Forward
0 new messages