Cosmetics: print 0 instead of -0.

From Zafer Aydogan in PR bin/36831.
This commit is contained in:
martin 2007-08-24 17:02:32 +00:00
parent 2680c8169c
commit fe7b5be8b0

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: rtclocaltime,v 1.5 2006/10/01 15:17:51 sketch Exp $
# $NetBSD: rtclocaltime,v 1.6 2007/08/24 17:02:32 martin Exp $
#
# PROVIDE: rtclocaltime
@ -18,7 +18,7 @@ rtclocaltime_start()
{
rtcoff=$(date '+%z' | awk '{
offset = int($1);
if (offset < 0) {
if (offset <= 0) {
sign = -1;
offset = -offset;
} else {