Arc Forumnew | comments | leaders | submitlogin
3 points by CatDancer 5808 days ago | link | parent

In arc3 ac.scm has

  (putenv "TZ" ":GMT")


1 point by thaddeus 5808 days ago | link

So I changed it to: (putenv "TZ" ":MDT")

now I get....

  arc>(system "date")
  Tue 23 Jun 2009 00:57:10 UTC

-----

1 point by CatDancer 5808 days ago | link

If you're going to set TZ, you need to set it to a valid TZ value, or else date is going to default to UTC.

http://www.gnu.org/s/libc/manual/html_node/TZ-Variable.html

But if you want it to use your normal system timezone, just don't set TZ.

-----

1 point by thaddeus 5808 days ago | link

ah - i just commented out the whole thing and it's fixed.

Thanks for pointing me in the right direction.

-----