version 1.1.2.
This commit is contained in:
@ -24,3 +24,7 @@ top_builddir = ../../..
|
||||
include $(top_builddir)/src/Makefile.global
|
||||
include $(top_srcdir)/contrib/contrib-global.mk
|
||||
endif
|
||||
|
||||
# remove dependency to libxml2 and libxslt
|
||||
LIBS := $(filter-out -lxml2, $(LIBS))
|
||||
LIBS := $(filter-out -lxslt, $(LIBS))
|
||||
|
@ -8,7 +8,7 @@
|
||||
* @brief Client Modules
|
||||
*/
|
||||
|
||||
const char *PROGRAM_VERSION = "1.1.1";
|
||||
const char *PROGRAM_VERSION = "1.1.2";
|
||||
const char *PROGRAM_URL = "http://reorg.projects.postgresql.org/";
|
||||
const char *PROGRAM_EMAIL = "reorg-general@lists.pgfoundry.org";
|
||||
|
||||
|
@ -351,6 +351,7 @@ parse_time(const char *value, time_t *time)
|
||||
tmp[len] = '\0';
|
||||
|
||||
/* parse for "YYYY-MM-DD HH:MI:SS" */
|
||||
memset(&tm, 0, sizeof(tm));
|
||||
tm.tm_year = 0; /* tm_year is year - 1900 */
|
||||
tm.tm_mon = 0; /* tm_mon is 0 - 11 */
|
||||
tm.tm_mday = 1; /* tm_mday is 1 - 31 */
|
||||
@ -375,6 +376,9 @@ parse_time(const char *value, time_t *time)
|
||||
if (i > 1)
|
||||
tm.tm_mon -= 1;
|
||||
|
||||
/* determine whether Daylight Saving Time is in effect */
|
||||
tm.tm_isdst = -1;
|
||||
|
||||
*time = mktime(&tm);
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user