Cosmetics: print 0 instead of -0.
From Zafer Aydogan in PR bin/36831.
This commit is contained in:
parent
2680c8169c
commit
fe7b5be8b0
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user