[Groonga-mysql-commit] mroonga/mroonga at e3be150 [master] Fix a bug that daylight saving time is ignored

Back to archive index

Kenji Maruyama null+****@clear*****
Fri May 9 18:05:36 JST 2014


Kenji Maruyama	2014-05-09 18:05:36 +0900 (Fri, 09 May 2014)

  New Revision: e3be1502941b331ae06550a1967a6e89e46d2c31
  https://github.com/mroonga/mroonga/commit/e3be1502941b331ae06550a1967a6e89e46d2c31

  Message:
    Fix a bug that daylight saving time is ignored
    
    refs #2385

  Modified files:
    lib/mrn_time_converter.cpp

  Modified: lib/mrn_time_converter.cpp (+1 -0)
===================================================================
--- lib/mrn_time_converter.cpp    2014-05-08 16:05:56 +0900 (63bafa2)
+++ lib/mrn_time_converter.cpp    2014-05-09 18:05:36 +0900 (aa77945)
@@ -37,6 +37,7 @@ namespace mrn {
   time_t TimeConverter::tm_to_time_gm(struct tm *time) {
     MRN_DBUG_ENTER_METHOD();
     struct tm gmdate;
+    time->tm_isdst = -1;
     time_t sec_t = mktime(time);
     if (sec_t == -1)
       DBUG_RETURN(sec_t);
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-mysql-commit mailing list
Back to archive index