i want to ask something about painless script. so i just made a painless script that look like this:
but unfortunately the result of this script is still in utc and i want to change it to another timezone for example GMT+7. How can i do it? what should i add on my script?
Have you looked at this documentation about using Datetime in Painless?
There is a section called Datetime Zone(screenshot included). The timezone default is UTC but it looks like you can use methods with a ZoneID to change the timezone.
oh, thanks. i've seen that documentation before but i found so many case that match my need, So I'm confused about which one to use. I have tried some of them but it doesn't work. but thanks a lot for your help
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.