redss Posted April 27, 2004 Report Share Posted April 27, 2004 I have a perl script on a web server in a different time zone. Is there a way that I can make the date command output the date in my timezone rather than the time zone of the server? Quote Link to comment Share on other sites More sharing options...
spinynorman Posted April 27, 2004 Report Share Posted April 27, 2004 Like this? [steve@localhost steve]$ date +%c Tue 27 Apr 2004 00:04:01 BST Quote Link to comment Share on other sites More sharing options...
redss Posted April 29, 2004 Author Report Share Posted April 29, 2004 Thats it, should mention that the TZ environment variable needs to be set first. thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.