[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference microw::acmsxp

Title:ACMSxp product questions and comments
Notice:Refer to notes 1 through 11 for conference information
Moderator:DUCAT::ROSCOE
Created:Tue Oct 05 1993
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:282
Total number of notes:1134

274.0. "Logged time stamp is 7 hours ahead (WNT, 3.0)" by TKOV60::OKAMURA (H.Okamura PS4-2/EJD3/NSIS, Japan) Wed Apr 16 1997 08:47

I found the problem on ACMSxp 3.0 for WindowsNT.

The problem is that the logged time stamp is 7 hours ahead rather than 
local time. I'll attach the sample log file which captured at 17:51.

I've found two referent to time related function which are 'GetLocalTime()'
and 'strftime()' in STDLRT.DLL. And those two use different structure for
time (i.e. SYSTEMTIME, struct tm).

How does ACMSxp convert SYSTEMTIME to tm structure?

I think that applying time diffential cause this problem.

Thanks,
Hiroaki

********************************************************************************
USER:  tpctest
TIME:  1997-04-16-22:51:31.017
POSTED BY:  Server Process
PID:  165
TYPE:  trace
EXECUTION CONTEXT INFORMATION:  
    TPSystem:  /.:/tpcc/tpcc
    Server:  pptpc011
    Interface:  pptpc011
    Request ID:  ef322c50-b6ab-11d0-8d66-0000f877942b
    Procedure:  tpccnew

Entered Function tpccnew in Group pptpc011.
T.RTitleUserPersonal
Name
DateLines
274.1DUCAT::ROSCOEThu Apr 17 1997 14:515
We don't see the problem here.  Is the time on your box correct?  Do you have
the timezone set properly?  Check out the Date/Time option in the Control
Panel.

Rich
274.2OS may cause this problemTKOV60::OKAMURAH.Okamura PS4-2/EJD3/NSIS, JapanWed Apr 23 1997 01:0615
.2>We don't see the problem here.  Is the time on your box correct?  Do you have
.2>the timezone set properly?  Check out the Date/Time option in the Control
.2>Panel.

I've confirmed that my timezone was GMT+09:00.

.1>I've found two referent to time related function which are 'GetLocalTime()'

I heard that WindowsNT 4.0 has problem to refer timezone information.

Since Mr. Yasuchika Okubo (WING::OKUBO) has detail information for this issue,
please ask him to get information.

Thanks,
Hiroaki
274.3additional info.TKOV60::OKAMURAH.Okamura PS4-2/EJD3/NSIS, JapanFri Apr 25 1997 08:2932
.2>We don't see the problem here.  Is the time on your box correct?  Do you have
.2>the timezone set properly?  Check out the Date/Time option in the Control
.2>Panel.

Which version of Visual C++ do you use to build ACMSxp V3.0 for Intel?

Thanks to Ohkubo-san and Horie-san's help, I've found the difference among
V4.0 and V4.2.

I've tested same source code as followings and receive different results.

The produced code by VC++ V4.0 works fine, but V4.2 is not.

According to the result of DUMPBIN, the dependency of Microsoft's library
has been changed.

Hiroaki

#include <time.h>
#include <stdio.h>

void main( void )
{
   struct tm *newtime;
   long ltime;

   time( &ltime );

   /* Universal Time */
   newtime = gmtime( &ltime );
   printf( "Universal Time: %s\n", asctime( newtime ) );
}
274.4V4.0 of C++ usedCAMINO::ROSCOEFri Apr 25 1997 12:013
    We used V4.0 of visual C++.   Thanks for the information.
    
    Rich