ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/timer_unix.cpp
(Generate patch)

Comparing BasiliskII/src/Unix/timer_unix.cpp (file contents):
Revision 1.5 by cebix, 1999-10-19T17:41:39Z vs.
Revision 1.6 by cebix, 2000-02-21T20:04:18Z

# Line 54 | Line 54 | uint32 TimerDateTime(void)
54   {
55          time_t utc_now = time(NULL);
56   #if defined(__linux__) || defined(__SVR4)
57 <        long tz = timezone;
58 <        time_t local_now = utc_now - tz;
59 <        if (daylight)
60 <                local_now += 3600;
57 >        time_t local_now = utc_now - timezone;
58   #elif defined(__FreeBSD__) || defined(__NetBSD__)
59          time_t local_now = utc_now + localtime(&utc_now)->tm_gmtoff;
60   #else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines