diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2012-02-25 16:33:10 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2012-02-25 16:33:10 +0000 |
commit | a3d0f5e0b79998dbc899186523ecfdfbee706d4e (patch) | |
tree | f7921b2b9b0995e13aac509dfdef7bb601d23fc7 /misc | |
parent | - set PKGNAMEPREFIX (diff) |
Fix printed universal time calculation when time zone offset contains
minutes.
Notes
Notes:
svn path=/head/; revision=292228
Diffstat (limited to 'misc')
-rw-r--r-- | misc/astrolog/Makefile | 2 | ||||
-rw-r--r-- | misc/astrolog/files/patch-charts1.c | 13 |
2 files changed, 12 insertions, 3 deletions
diff --git a/misc/astrolog/Makefile b/misc/astrolog/Makefile index 22f57c239bd0..27fcee327444 100644 --- a/misc/astrolog/Makefile +++ b/misc/astrolog/Makefile @@ -10,7 +10,7 @@ PORTNAME= astrolog PORTVERSION= 5.40 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= misc MASTER_SITES= http://www.astrolog.org/ftp/ephem/:ephem \ http://www.astrolog.org/ftp/:dist diff --git a/misc/astrolog/files/patch-charts1.c b/misc/astrolog/files/patch-charts1.c index 707385e7fe03..f4542943a6fd 100644 --- a/misc/astrolog/files/patch-charts1.c +++ b/misc/astrolog/files/patch-charts1.c @@ -1,5 +1,5 @@ ---- charts1.c.bak 1998-12-23 23:29:26.000000000 +0300 -+++ charts1.c 2007-06-23 16:28:33.000000000 +0400 +--- charts1.c.orig 1998-12-23 23:29:14.000000000 +0300 ++++ charts1.c 2012-02-25 19:40:41.000000000 +0400 @@ -53,7 +53,7 @@ char sz[cchSzDef]; int day, fNam, fLoc; @@ -18,3 +18,12 @@ PrintHeader(); /* Show time and date of the chart being displayed. */ +@@ -493,7 +493,7 @@ + case 5: + nT = us.fEuroTime; us.fEuroTime = fTrue; + sprintf(szT, "%s", SzTim(DegToDec(DFromR(is.RA)*(24.0/rDegMax)))); +- sprintf(sz, "UT: %s, Sid.T: %s", SzTim(Tim+Zon-Dst), szT); ++ sprintf(sz, "UT: %s, Sid.T: %s", SzTim(DegToDec(DecToDeg(Tim)+DecToDeg(Zon-Dst))), szT); + us.fEuroTime = nT; + break; + case 6: |