18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
How to change Time zone PKT to CET in Sahi logs
OS Linux
Browser IE 8
Sahi build: 3.5, 2011-05-25
Hello
I would like to change the time zone that is used by Sahi to date the logs, from Pakistan Standard Time to European Standard Time.
This is to align the time zones between Sahi and my application and compare the log events.
Example:
The web server threw a 500 Internal Server Error at Thu Feb 09 20:02:00 PKT 2012. at 9 févr. 2012 20:02:02
Thanks a lot in advance!
Regards
Browser IE 8
Sahi build: 3.5, 2011-05-25
Hello
I would like to change the time zone that is used by Sahi to date the logs, from Pakistan Standard Time to European Standard Time.
This is to align the time zones between Sahi and my application and compare the log events.
Example:
The web server threw a 500 Internal Server Error at Thu Feb 09 20:02:00 PKT 2012. at 9 févr. 2012 20:02:02
Thanks a lot in advance!
Regards
Comments
To use a different timezone you could change the user.timezone property of Sahi's java process:
Open sahi/bin/dashboard.bat
Change the last line from
java -classpath ...
to
java -Duser.timezone=Europe/Lisbon -classpath ...
Restart Sahi dashboard and rerun your script to check.
Here is a full list of valid timezone values: http://publib.boulder.ibm.com/infocenter/wsdoc400/v6r0/index.jsp?topic=/com.ibm.websphere.iseries.doc/info/ae/ae/adrtzval.htm
Note that if you are using start_sahi.bat, you need to modify in sahi/bin/sahi.bat
If you are starting from ant, you may need to add the user.timezone property in your build file.
Regards,
Narayan
It's working beautifully, thanks a lot!
Any chance of having a look at http://sahi.co.in/forums/viewtopic.php?id=3482?
Best regards and have a good weekend!
Fabien