Index: /tags/ipp-20170121/psLib/src/astro/psTime.c
===================================================================
--- /tags/ipp-20170121/psLib/src/astro/psTime.c	(revision 40191)
+++ /tags/ipp-20170121/psLib/src/astro/psTime.c	(revision 40192)
@@ -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
