- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2024 07:31 PM
Hi, It's Kentaro.
I found that GlideDateTime.getDisplayValue gives different results between Flow Designer and Script Background.
Our time zone is Japan.
The script running the attached image is the same.
I need help because I don't know the cause.
var gdt = new GlideDateTime();
var local = gdt.getValue();
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2024 11:53 PM
so are you having custom action in flow which is returning the time?
what's your business requirement?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2024 11:27 PM
There was a mistake.
The attached photo is the result of getDisplayValue().(Local time is JST)
var gdt = new GlideDateTime();
var local = gdt.getValue();
↓
var gdt = new GlideDateTime();
var local = gdt.getDisplayValue();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2024 12:04 AM
Hello @Kentaro Numata
https://hishowcase.service-now.com/kb?id=kb_article_view&sysparm_article=KB0594666
Above article may help you.
Thanks,
Sanket Landge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2024 11:58 PM
Hello @Sanket Landge.
I couldn't open><
https://hishowcase.service-now.com/kb?id=kb_article_view&sysparm_article=KB0594666
Thanks,
Kentaro.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 12:07 AM