- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2022 11:08 PM
Hello experts,
I tried calling an event in a scheduled job and I need to pass a date in the event parameter.
I have come across a method and I was able to pass the date in the parameter and use it in the email content of the notification.
It is working and sending in my email.
My problem now is that the time is sent in the UTC format, do you know of any method that returns in JST? or japan standard time?
Thanks in advance
Solved! Go to Solution.
- Labels:
-
Multiple Versions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2022 05:54 PM
Hello,
Thanks for the suggestion but it is not the exact thing I am looking for. But in the end I was able to find it either by using the getDisplayValue(); for GlideDateTime constructor or the gs.nowDateTime(); method.
Regards,
Rain

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2022 11:28 PM
Hi
You can try below to get time in the system timezone [I assume it would be JST]. Add below as the third paramter.
new GlideDateTime();
If you want to get the user's local time then try below.
var gdt = new GlideDateTime();
var timeNow = gdt.getLocalTime();
gs.eventQueue('totalMemoryWarning', current, freeMem, timeNow);
Regards,
Muhammad
Muhammad

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2022 09:27 PM
Thanks and have a nice one 🙂
Muhammad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2022 05:54 PM