(Issue #1201)
- Fixed attributes returned by the Create-Xxx-Subscriptions requests
(Issue #1204)
+- Fixed `ippDateToTime` when using a non GMT/UTC timezone (Issue #1208)
Changes in CUPS v2.4.11 (2024-09-30)
dnl
dnl Common configuration stuff for CUPS.
dnl
-dnl Copyright © 2020-2024 by OpenPrinting.
+dnl Copyright © 2020-2025 by OpenPrinting.
dnl Copyright © 2007-2019 by Apple Inc.
dnl Copyright © 1997-2007 by Easy Software Products, all rights reserved.
dnl
AC_MSG_RESULT([no])
])
+dnl See if we have the timegm function...
+AC_CHECK_FUNC([timegm], [
+ AC_DEFINE([HAVE_TIMEGM], [1], [Do we have the timegm function?])
+])
+
dnl See if the stat structure has the st_gen member...
AC_MSG_CHECKING([for st_gen member in stat structure])
AC_COMPILE_IFELSE([
/*
* Configuration file for CUPS.
*
- * Copyright © 2020-2023 by OpenPrinting
+ * Copyright © 2020-2025 by OpenPrinting
* Copyright © 2007-2019 by Apple Inc.
* Copyright © 1997-2007 by Easy Software Products.
*
#undef HAVE_TM_GMTOFF
+/*
+ * Do we have the timegm function?
+ */
+
+#undef HAVE_TIMEGM
+
+
/*
* Do we have rresvport_af()?
*/
then :
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
printf %s "checking for $CXX option to enable C++11 features... " >&6; }
-if test ${ac_cv_prog_cxx_cxx11+y}
+if test ${ac_cv_prog_cxx_11+y}
then :
printf %s "(cached) " >&6
else $as_nop
- ac_cv_prog_cxx_cxx11=no
+ ac_cv_prog_cxx_11=no
ac_save_CXX=$CXX
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
then :
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
printf %s "checking for $CXX option to enable C++98 features... " >&6; }
-if test ${ac_cv_prog_cxx_cxx98+y}
+if test ${ac_cv_prog_cxx_98+y}
then :
printf %s "(cached) " >&6
else $as_nop
- ac_cv_prog_cxx_cxx98=no
+ ac_cv_prog_cxx_98=no
ac_save_CXX=$CXX
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
+if test "x$ac_cv_func_timegm" = xyes
+then :
+
+
+printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
+
+
+fi
+
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
printf %s "checking for st_gen member in stat structure... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
* 6 Seconds (0 to 60, 60 = "leap second")
* 7 Deciseconds (0 to 9)
* 8 +/- UTC
- * 9 UTC hours (0 to 11)
+ * 9 UTC hours (0 to 14)
* 10 UTC minutes (0 to 59)
*/
unixdate.tm_min = date[5];
unixdate.tm_sec = date[6];
- t = mktime(&unixdate);
+#if _WIN32
+ if ((t = _mkgmtime(&unixdate)) < 0)
+ return (0);
+#elif defined(HAVE_TIMEGM)
+ if ((t = timegm(&unixdate)) < 0)
+ return (0);
+#else
+ if ((t = mktime(&unixdate)) < 0)
+ return (0);
+
+# if defined(HAVE_TM_GMTOFF)
+ localtime_r(&t, &unixdate);
+ t -= unixdate.tm_gmtoff;
+# else
+ t -= timezone;
+# endif // HAVE_TM_GMTOFF
+#endif // _WIN32
if (date[8] == '-')
t += date[9] * 3600 + date[10] * 60;
/*
* Configuration file for CUPS on Windows.
*
- * Copyright © 2021-2024 by OpenPrinting
+ * Copyright © 2021-2025 by OpenPrinting
* Copyright © 2007-2019 by Apple Inc.
* Copyright © 1997-2007 by Easy Software Products.
*
/* #undef HAVE_TM_GMTOFF */
+/*
+ * Do we have the timegm function?
+ */
+
+/* #undef HAVE_TIMEGM */
+
+
/*
* Do we have rresvport_af()?
*/
/*
* Configuration file for CUPS and Xcode.
*
- * Copyright © 2021-2024 by OpenPrinting
+ * Copyright © 2021-2025 by OpenPrinting
* Copyright © 2007-2019 by Apple Inc.
* Copyright © 1997-2007 by Easy Software Products.
*
#define HAVE_TM_GMTOFF 1
+/*
+ * Do we have the timegm function?
+ */
+
+#define HAVE_TIMEGM 1
+
+
/*
* Do we have rresvport_af()?
*/