aboutsummaryrefslogtreecommitdiff
path: root/misc/astrolog
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2012-02-25 16:33:10 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2012-02-25 16:33:10 +0000
commita3d0f5e0b79998dbc899186523ecfdfbee706d4e (patch)
treef7921b2b9b0995e13aac509dfdef7bb601d23fc7 /misc/astrolog
parentc9e85d257ad82c45375fb50e0b7f70f806354d0f (diff)
downloadports-a3d0f5e0b79998dbc899186523ecfdfbee706d4e.tar.gz
ports-a3d0f5e0b79998dbc899186523ecfdfbee706d4e.zip
Fix printed universal time calculation when time zone offset contains
minutes.
Notes
Notes: svn path=/head/; revision=292228
Diffstat (limited to 'misc/astrolog')
-rw-r--r--misc/astrolog/Makefile2
-rw-r--r--misc/astrolog/files/patch-charts1.c13
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: