I am running a script from java program using sshxcute API. Script contains:
#!/bin/sh data=`stat -c%y filename` echo $data
Script running on bash gives output:
2014-03-08 13:26:29.335545828 -0800
Script running through java program gives output:
2014-03-08 21:26:29.335545828 +0000
I think the -0800 is getting added. I need output in first format. Anyone have any idea how to resolve the issue?