Index: trunk/psLib/src/astro/psTime.c
===================================================================
--- trunk/psLib/src/astro/psTime.c	(revision 1407)
+++ trunk/psLib/src/astro/psTime.c	(revision 1533)
@@ -13,6 +13,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-08-07 00:06:06 $
+ *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-08-13 23:47:10 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -221,4 +221,5 @@
     char *tempString = NULL;
     struct tm *tmTime = NULL;
+    time_t sec;
 
     CHECK_NEGATIVE_TIME_STRUCT(time, NULL);
@@ -230,6 +231,7 @@
     ms = time.tv_usec / 1000;
 
+    sec = time.tv_sec;
     // tmTime variable is statically allocated, no need to free
-    tmTime = gmtime(&time.tv_sec);
+    tmTime = gmtime(&sec);
     if (!strftime(tempString, MAX_TIME_STRING_LENGTH, "%Y/%m/%d,%H:%M:%S", tmTime)) {
         psError(__func__, " : Line %d - Failed strftime conversion", __LINE__);
@@ -309,7 +311,9 @@
 {
     struct tm *tmTime = NULL;
+    time_t sec;
 
     CHECK_NEGATIVE_TIME_STRUCT(time, tmTime);
-    tmTime = gmtime(&time.tv_sec);
+    sec = time.tv_sec;
+    tmTime = gmtime(&sec);
 
     return tmTime;
