Index: trunk/psLib/src/astro/psTime.c
===================================================================
--- trunk/psLib/src/astro/psTime.c	(revision 39926)
+++ trunk/psLib/src/astro/psTime.c	(revision 40044)
@@ -1380,5 +1380,5 @@
     // if this is NOT a UTC time then we want to make sure tm.tm_sec does not
     // end up being set to 60
-    if (!time->type == PS_TIME_UTC)
+    if (!(time->type == PS_TIME_UTC))
     {
         // If leapsecond use previous day
