- Added comment that code is broken.
- Silenced annoying long term winapi_check message.
This commit is contained in:
parent
09da966c8c
commit
3e3194f68b
|
@ -703,7 +703,8 @@ DecodeDateTime(char **field, int *ftype, int nf,
|
||||||
|
|
||||||
if (IS_VALID_UTIME(tm->tm_year, tm->tm_mon, tm->tm_mday))
|
if (IS_VALID_UTIME(tm->tm_year, tm->tm_mon, tm->tm_mday))
|
||||||
{
|
{
|
||||||
#ifdef USE_POSIX_TIME
|
/* FIXME: The code below is not correct */
|
||||||
|
#if 0 /* defined(USE_POSIX_TIME) */
|
||||||
tm->tm_year -= 1900;
|
tm->tm_year -= 1900;
|
||||||
tm->tm_mon -= 1;
|
tm->tm_mon -= 1;
|
||||||
tm->tm_isdst = -1;
|
tm->tm_isdst = -1;
|
||||||
|
@ -711,7 +712,7 @@ DecodeDateTime(char **field, int *ftype, int nf,
|
||||||
tm->tm_year += 1900;
|
tm->tm_year += 1900;
|
||||||
tm->tm_mon += 1;
|
tm->tm_mon += 1;
|
||||||
|
|
||||||
#ifdef HAVE_INT_TIMEZONE
|
#if 0 /* defined(HAVE_INT_TIMEZONE) */
|
||||||
*tzp = ((tm->tm_isdst > 0) ? (timezone - 3600) : timezone);
|
*tzp = ((tm->tm_isdst > 0) ? (timezone - 3600) : timezone);
|
||||||
|
|
||||||
#else /* !HAVE_INT_TIMEZONE */
|
#else /* !HAVE_INT_TIMEZONE */
|
||||||
|
|
Loading…
Reference in New Issue