[Libreoffice-commits] core.git: sal/osl

Lionel Elie Mamane lionel at mamane.lu
Fri Jul 5 08:55:06 PDT 2013


 sal/osl/unx/time.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b440845b9f04fdf498caf3bcdcc52ffc8c489639
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date:   Fri Jul 5 17:55:30 2013 +0200

    janitorial / stylistic
    
    Change-Id: I8e7c1e63ff04220e530662d9a6e142f4f0e7247f

diff --git a/sal/osl/unx/time.c b/sal/osl/unx/time.c
index 24947b1..38e8f36 100644
--- a/sal/osl/unx/time.c
+++ b/sal/osl/unx/time.c
@@ -205,13 +205,13 @@ sal_Bool SAL_CALL osl_getLocalTimeFromSystemTime( const TimeValue* pSystemTimeVa
 
 #if defined(STRUCT_TM_HAS_GMTOFF)
     /* members of struct tm are corrected by mktime */
-    bias = 0 - pLocalTime->tm_gmtoff;
+    bias = -pLocalTime->tm_gmtoff;
 
 #elif defined(HAS_ALTZONE)
     /* check if daylight saving time is in effect */
     bias = pLocalTime->tm_isdst > 0 ? altzone : timezone;
 #else
-    /* exspect daylight saving time to be one hour */
+    /* expect daylight saving time to be one hour */
     bias = pLocalTime->tm_isdst > 0 ? timezone - 3600 : timezone;
 #endif
 


More information about the Libreoffice-commits mailing list