[tz] [PATCH 4/5] tzselect.ksh: time scales assumed

J William Piggott elseifthen at gmx.com
Wed Jan 20 16:47:01 UTC 2016

Local time is now:     $TZdate.
Universal Time is now: $UTdate.

The above is assuming that the System Clock is set
properly and that the caller is finding a 'local'
time zone.

Local time is unknown, the displayed time should
be labeled as using the selected time zone.

The System Clock scale is unknown and should be
labeled as Raw System Time showing a time zone of RAW.

Signed-off-by: J William Piggott <elseifthen at gmx.com>
 tzselect.ksh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tzselect.ksh b/tzselect.ksh
index 905953c..3e8d07b 100644
--- a/tzselect.ksh
+++ b/tzselect.ksh
@@ -507,14 +507,14 @@ while
 	for i in 1 2 3 4 5 6 7 8
 		TZdate=`LANG=C TZ="$TZ_for_date" date`
-		UTdate=`LANG=C TZ=UTC0 date`
+		UTdate=`LANG=C TZ=RAW0 date`
 		TZsec=`expr "$TZdate" : '.*:\([0-5][0-9]\)'`
 		UTsec=`expr "$UTdate" : '.*:\([0-5][0-9]\)'`
 		case $TZsec in
-Local time is now:	$TZdate.
-Universal Time is now:	$UTdate."
+Time with selected TZ:	$TZdate.
+Raw System Clock time:	$UTdate."

More information about the tz mailing list