summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xworldclock2
1 files changed, 1 insertions, 1 deletions
diff --git a/worldclock b/worldclock
index 8c01a3f..f43510d 100755
--- a/worldclock
+++ b/worldclock
@@ -11,7 +11,7 @@ do
     for TZ in $ZONES ; do
         if [ $TZ = "unix" ]
         then TIME=$( date +%s )
-        else TIME=$( date )
+        else TIME=$( TZ="$TZ" date )
         fi
         echo -e $TIME "\t" $TZ
     done