[GRASS-SVN] r68253 - grass/branches/releasebranch_6_4/raster/r.sun2

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 12 12:46:36 PDT 2016


Author: neteler
Date: 2016-04-12 12:46:35 -0700 (Tue, 12 Apr 2016)
New Revision: 68253

Modified:
   grass/branches/releasebranch_6_4/raster/r.sun2/main.c
Log:
r.sun: mode 1 fix for time offset due to timezone, see #2876 for explanations

Modified: grass/branches/releasebranch_6_4/raster/r.sun2/main.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.sun2/main.c	2016-04-12 13:42:12 UTC (rev 68252)
+++ grass/branches/releasebranch_6_4/raster/r.sun2/main.c	2016-04-12 19:46:35 UTC (rev 68253)
@@ -1783,7 +1783,7 @@
 
 	/* Time offset due to timezone as input by user */
 
-	locTimeOffset += civilTime;
+	locTimeOffset = civilTime - locTimeOffset; /* fix from #2876 */
 	setTimeOffset(locTimeOffset);
     }
     else {



More information about the grass-commit mailing list