summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_time.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/OS_NS_time.cpp')
-rw-r--r--ACE/ace/OS_NS_time.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/ACE/ace/OS_NS_time.cpp b/ACE/ace/OS_NS_time.cpp
index 2ab3c7ebe47..ad8b188d457 100644
--- a/ACE/ace/OS_NS_time.cpp
+++ b/ACE/ace/OS_NS_time.cpp
@@ -253,11 +253,7 @@ ACE_OS::localtime_r (const time_t *t, struct tm *res)
FileTimeToSystemTime (&localtime, &systime);
res->tm_hour = systime.wHour;
-
- if(pTz.DaylightBias!=0)
- res->tm_isdst = 1;
- else
- res->tm_isdst = 1;
+ res->tm_isdst = pTz.DaylightBias != 0;
int iLeap;
iLeap = (res->tm_year % 4 == 0 && (res->tm_year% 100 != 0 || res->tm_year % 400 == 0));