Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package goaccess for openSUSE:Factory 
checked in at 2022-07-15 13:52:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/goaccess (Old)
 and      /work/SRC/openSUSE:Factory/.goaccess.new.1523 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "goaccess"

Fri Jul 15 13:52:52 2022 rev:23 rq:989347 version:1.6.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/goaccess/goaccess.changes        2022-07-05 
12:09:40.948574162 +0200
+++ /work/SRC/openSUSE:Factory/.goaccess.new.1523/goaccess.changes      
2022-07-15 13:53:09.779576699 +0200
@@ -1,0 +2,10 @@
+Fri Jul 15 07:30:15 UTC 2022 - Michael Vetter <mvet...@suse.com>
+
+- Update to 1.6.2:
+  * Added `Android 12` to the list of OSs.
+  * Added `macOS 12 Ventura` to the list of OSs.
+  * Fixed implicit declaration build issue due to `timegm(3)` on `BSDs` and 
`macOS`.
+  * Fixed issue where timezone conversion would be performed twice on a given
+    date.
+
+-------------------------------------------------------------------

Old:
----
  goaccess-1.6.1.tar.gz

New:
----
  goaccess-1.6.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ goaccess.spec ++++++
--- /var/tmp/diff_new_pack.QHNJLS/_old  2022-07-15 13:53:10.383576894 +0200
+++ /var/tmp/diff_new_pack.QHNJLS/_new  2022-07-15 13:53:10.391576897 +0200
@@ -20,7 +20,7 @@
 %global goaccess_services goaccess@.service goaccess@.timer
 
 Name:           goaccess
-Version:        1.6.1
+Version:        1.6.2
 Release:        0
 Summary:        Apache Web Log Analyzer
 License:        GPL-2.0-or-later

++++++ goaccess-1.6.1.tar.gz -> goaccess-1.6.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/ChangeLog new/goaccess-1.6.2/ChangeLog
--- old/goaccess-1.6.1/ChangeLog        2022-06-30 16:17:12.000000000 +0200
+++ new/goaccess-1.6.2/ChangeLog        2022-07-15 02:58:39.000000000 +0200
@@ -1,15 +1,22 @@
+Changes to GoAccess 1.6.2 - Thursday, July 14, 2022
+
+  - Added `Android 12` to the list of OSs.
+  - Added `macOS 12 Ventura` to the list of OSs.
+  - Fixed implicit declaration build issue due to `timegm(3)` on `BSDs` and 
`macOS`.
+  - Fixed issue where timezone conversion would be performed twice on a given
+    date.
+
 Changes to GoAccess 1.6.1 - Thursday, June 30, 2022
 
   - Added a `--ping-interval=<secs>` in an attempt to keep the WebSocket
     connection opened.
   - Added support for timezone conversion via `--datetime-format=<format>` and
     `--tz=<timezone>`.
-  - Added the ability to reconnect to WebSocket server after 1 sec with
+  - Added the ability to reconnect to the WebSocket server after 1 sec with
     exponential backoff (x20).
   - Fixed issue where an invalid client connection would stall data out to
     clients via the WebSocket server.
-  - Fixed issue where real-time data would be parsed multiple times under
-    `Cygwin`.
+  - Fixed an issue where real-time data would be parsed multiple times under 
`Cygwin`.
 
 Changes to GoAccess 1.6 - Tuesday, May 31, 2022
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/NEWS new/goaccess-1.6.2/NEWS
--- old/goaccess-1.6.1/NEWS     2022-06-30 16:17:12.000000000 +0200
+++ new/goaccess-1.6.2/NEWS     2022-07-15 00:40:06.000000000 +0200
@@ -2,6 +2,8 @@
 Gerardo Orellana <goacc...@prosoftcorp.com>
 
 * Version history:
+    - 1.6.2 [Thursday, July 14 , 2022]
+        . GoAccess 1.6.2 Released. See ChangeLog for new features/bug-fixes.
     - 1.6.1 [Thursday, June 30 , 2022]
         . GoAccess 1.6.1 Released. See ChangeLog for new features/bug-fixes.
     - 1.6 [Tuesday, May 31 , 2022]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/configure new/goaccess-1.6.2/configure
--- old/goaccess-1.6.1/configure        2022-06-30 16:17:26.000000000 +0200
+++ new/goaccess-1.6.2/configure        2022-07-15 00:00:34.000000000 +0200
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for goaccess 1.6.1.
+# Generated by GNU Autoconf 2.69 for goaccess 1.6.2.
 #
 # Report bugs to <he...@goaccess.io>.
 #
@@ -580,8 +580,8 @@
 # Identity of this package.
 PACKAGE_NAME='goaccess'
 PACKAGE_TARNAME='goaccess'
-PACKAGE_VERSION='1.6.1'
-PACKAGE_STRING='goaccess 1.6.1'
+PACKAGE_VERSION='1.6.2'
+PACKAGE_STRING='goaccess 1.6.2'
 PACKAGE_BUGREPORT='he...@goaccess.io'
 PACKAGE_URL='https://goaccess.io'
 
@@ -1333,7 +1333,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures goaccess 1.6.1 to adapt to many kinds of systems.
+\`configure' configures goaccess 1.6.2 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1404,7 +1404,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of goaccess 1.6.1:";;
+     short | recursive ) echo "Configuration of goaccess 1.6.2:";;
    esac
   cat <<\_ACEOF
 
@@ -1514,7 +1514,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-goaccess configure 1.6.1
+goaccess configure 1.6.2
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2067,7 +2067,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by goaccess $as_me 1.6.1, which was
+It was created by goaccess $as_me 1.6.2, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -2934,7 +2934,7 @@
 
 # Define the identity of the package.
  PACKAGE='goaccess'
- VERSION='1.6.1'
+ VERSION='1.6.2'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -9669,7 +9669,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by goaccess $as_me 1.6.1, which was
+This file was extended by goaccess $as_me 1.6.2, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -9736,7 +9736,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; 
s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-goaccess config.status 1.6.1
+goaccess config.status 1.6.2
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/configure.ac 
new/goaccess-1.6.2/configure.ac
--- old/goaccess-1.6.1/configure.ac     2022-06-30 16:17:12.000000000 +0200
+++ new/goaccess-1.6.2/configure.ac     2022-07-14 23:45:46.000000000 +0200
@@ -2,7 +2,7 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ([2.69])
-AC_INIT([goaccess],[1.6.1],[he...@goaccess.io],[],[https://goaccess.io])
+AC_INIT([goaccess],[1.6.2],[he...@goaccess.io],[],[https://goaccess.io])
 AM_INIT_AUTOMAKE
 AC_CONFIG_SRCDIR([src/goaccess.c])
 AC_CONFIG_HEADERS([src/config.h])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/goaccess.1 
new/goaccess-1.6.2/goaccess.1
--- old/goaccess-1.6.1/goaccess.1       2022-06-30 16:17:12.000000000 +0200
+++ new/goaccess-1.6.2/goaccess.1       2022-07-15 03:12:07.000000000 +0200
@@ -1,4 +1,4 @@
-.TH goaccess 1 "JUNE 2022" GNU+Linux "User Manuals"
+.TH goaccess 1 "JULY 2022" GNU+Linux "User Manuals"
 .SH NAME
 goaccess \- fast web log analyzer and interactive viewer.
 .SH SYNOPSIS
@@ -1069,6 +1069,10 @@
 and applying a filter
 .IP
 # tail -f -n +0 access.log | grep -i --line-buffered 'firefox' | goaccess 
--log-format=COMBINED -o report.html --real-time-html -
+.P
+or to convert the log date timezone to a different timezone, e.g., 
Europe/Berlin
+.IP
+# goaccess access.log --log-format='%h %^[%x] "%r" %s %b "%R" "%u"' 
--datetime-format='%d/%b/%Y:%H:%M:%S %z' --tz=Europe/Berlin --date-spec=min
 .SS
 MULTIPLE LOG FILES
 .P
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/po/de.po new/goaccess-1.6.2/po/de.po
--- old/goaccess-1.6.1/po/de.po 2022-06-30 16:17:12.000000000 +0200
+++ new/goaccess-1.6.2/po/de.po 2022-07-15 03:06:01.000000000 +0200
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: \n"
 "Report-Msgid-Bugs-To: he...@goaccess.io\n"
-"POT-Creation-Date: 2022-06-30 08:32-0500\n"
+"POT-Creation-Date: 2022-07-14 20:06-0500\n"
 "PO-Revision-Date: 2019-05-05 16:03+0200\n"
 "Last-Translator: Axel Wehner <m...@axelwehner.de>\n"
 "Language: de\n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/po/es.po new/goaccess-1.6.2/po/es.po
--- old/goaccess-1.6.1/po/es.po 2022-06-30 16:17:12.000000000 +0200
+++ new/goaccess-1.6.2/po/es.po 2022-07-15 03:06:01.000000000 +0200
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: Goaccess\n"
 "Report-Msgid-Bugs-To: he...@goaccess.io\n"
-"POT-Creation-Date: 2022-06-30 08:32-0500\n"
+"POT-Creation-Date: 2022-07-14 20:06-0500\n"
 "PO-Revision-Date: 2017-08-04 13:00-0300\n"
 "Last-Translator: Enrique Becerra <kab...@gmail.com>\n"
 "Language-Team: \n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/po/fr.po new/goaccess-1.6.2/po/fr.po
--- old/goaccess-1.6.1/po/fr.po 2022-06-30 16:17:12.000000000 +0200
+++ new/goaccess-1.6.2/po/fr.po 2022-07-15 03:06:01.000000000 +0200
@@ -6,7 +6,7 @@
 msgstr ""
 "Project-Id-Version: goaccess 1.4\n"
 "Report-Msgid-Bugs-To: he...@goaccess.io\n"
-"POT-Creation-Date: 2022-06-30 08:32-0500\n"
+"POT-Creation-Date: 2022-07-14 20:06-0500\n"
 "PO-Revision-Date: 2020-07-10 11:44+0200\n"
 "Last-Translator: Coban L. <coban.leb...@nfrance.com>\n"
 "Language-Team: fran??ais\n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/po/goaccess.pot 
new/goaccess-1.6.2/po/goaccess.pot
--- old/goaccess-1.6.1/po/goaccess.pot  2022-06-30 16:17:12.000000000 +0200
+++ new/goaccess-1.6.2/po/goaccess.pot  2022-07-15 03:06:01.000000000 +0200
@@ -6,9 +6,9 @@
 #, fuzzy
 msgid ""
 msgstr ""
-"Project-Id-Version: goaccess 1.6.1\n"
+"Project-Id-Version: goaccess 1.6.2\n"
 "Report-Msgid-Bugs-To: he...@goaccess.io\n"
-"POT-Creation-Date: 2022-06-30 08:32-0500\n"
+"POT-Creation-Date: 2022-07-14 20:06-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <l...@li.org>\n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/po/it.po new/goaccess-1.6.2/po/it.po
--- old/goaccess-1.6.1/po/it.po 2022-06-30 16:17:12.000000000 +0200
+++ new/goaccess-1.6.2/po/it.po 2022-07-15 03:06:01.000000000 +0200
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: Goaccess\n"
 "Report-Msgid-Bugs-To: he...@goaccess.io\n"
-"POT-Creation-Date: 2022-06-30 08:32-0500\n"
+"POT-Creation-Date: 2022-07-14 20:06-0500\n"
 "PO-Revision-Date: 2017-08-04 13:00-0300\n"
 "Last-Translator: Mario Donnarumma <mario.donnarumma...@gmail.com>\n"
 "Language-Team: \n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/po/ja.po new/goaccess-1.6.2/po/ja.po
--- old/goaccess-1.6.1/po/ja.po 2022-06-30 16:17:12.000000000 +0200
+++ new/goaccess-1.6.2/po/ja.po 2022-07-15 03:06:01.000000000 +0200
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: goaccess 1.3\n"
 "Report-Msgid-Bugs-To: he...@goaccess.io\n"
-"POT-Creation-Date: 2022-06-30 08:32-0500\n"
+"POT-Creation-Date: 2022-07-14 20:06-0500\n"
 "PO-Revision-Date: 2020-08-19 06:27+0900\n"
 "Last-Translator: Kamino <67395018+err...@users.noreply.github.com>\n"
 "Language-Team: Japanese\n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/po/pt_BR.po 
new/goaccess-1.6.2/po/pt_BR.po
--- old/goaccess-1.6.1/po/pt_BR.po      2022-06-30 16:17:12.000000000 +0200
+++ new/goaccess-1.6.2/po/pt_BR.po      2022-07-15 03:06:01.000000000 +0200
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: Goaccess\n"
 "Report-Msgid-Bugs-To: he...@goaccess.io\n"
-"POT-Creation-Date: 2022-06-30 08:32-0500\n"
+"POT-Creation-Date: 2022-07-14 20:06-0500\n"
 "PO-Revision-Date: 2019-04-25 20:34-0300\n"
 "Last-Translator: Alan Placidina Maria <alanplacid...@gmail.com>\n"
 "Language-Team: \n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/po/ru.po new/goaccess-1.6.2/po/ru.po
--- old/goaccess-1.6.1/po/ru.po 2022-06-30 16:18:42.000000000 +0200
+++ new/goaccess-1.6.2/po/ru.po 2022-07-15 03:06:01.000000000 +0200
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: goaccess 1.5.6\n"
 "Report-Msgid-Bugs-To: he...@goaccess.io\n"
-"POT-Creation-Date: 2022-06-30 08:32-0500\n"
+"POT-Creation-Date: 2022-07-14 20:06-0500\n"
 "PO-Revision-Date: 2022-04-21 10:17+0300\n"
 "Last-Translator: Artyom Karlov <artyom.kar...@gmail.com>\n"
 "Language-Team: \n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/po/sv.po new/goaccess-1.6.2/po/sv.po
--- old/goaccess-1.6.1/po/sv.po 2022-06-30 16:17:12.000000000 +0200
+++ new/goaccess-1.6.2/po/sv.po 2022-07-15 03:06:01.000000000 +0200
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: goaccess 1.3\n"
 "Report-Msgid-Bugs-To: he...@goaccess.io\n"
-"POT-Creation-Date: 2022-06-30 08:32-0500\n"
+"POT-Creation-Date: 2022-07-14 20:06-0500\n"
 "PO-Revision-Date: 2018-12-13 22:48-0600\n"
 "Last-Translator: Anders Johansson <johans...@aljmedia.se>\n"
 "Language-Team: none\n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/po/uk.po new/goaccess-1.6.2/po/uk.po
--- old/goaccess-1.6.1/po/uk.po 2022-06-30 16:18:42.000000000 +0200
+++ new/goaccess-1.6.2/po/uk.po 2022-07-15 03:06:01.000000000 +0200
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: goaccess 1.5.6\n"
 "Report-Msgid-Bugs-To: he...@goaccess.io\n"
-"POT-Creation-Date: 2022-06-30 08:32-0500\n"
+"POT-Creation-Date: 2022-07-14 20:06-0500\n"
 "PO-Revision-Date: 2022-04-21 10:17+0300\n"
 "Last-Translator: Artyom Karlov <artyom.kar...@gmail.com>\n"
 "Language-Team: \n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/po/zh_CN.po 
new/goaccess-1.6.2/po/zh_CN.po
--- old/goaccess-1.6.1/po/zh_CN.po      2022-06-30 16:17:12.000000000 +0200
+++ new/goaccess-1.6.2/po/zh_CN.po      2022-07-15 03:06:01.000000000 +0200
@@ -5,7 +5,7 @@
 msgstr ""
 "Project-Id-Version: goaccess 1.5.6\n"
 "Report-Msgid-Bugs-To: he...@goaccess.io\n"
-"POT-Creation-Date: 2022-06-30 08:32-0500\n"
+"POT-Creation-Date: 2022-07-14 20:06-0500\n"
 "PO-Revision-Date: 2017-04-03 09:43+0200\n"
 "Last-Translator: Ai<he...@goaccess.io>\n"
 "Language-Team: Ai\n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/src/commons.h 
new/goaccess-1.6.2/src/commons.h
--- old/goaccess-1.6.1/src/commons.h    2022-06-30 16:17:12.000000000 +0200
+++ new/goaccess-1.6.2/src/commons.h    2022-07-14 23:45:31.000000000 +0200
@@ -43,7 +43,7 @@
 #define __attribute__(x) /**/
 #endif
 #define GO_UNUSED __attribute__((unused))
-#define GO_VERSION             "1.6.1"
+#define GO_VERSION             "1.6.2"
 #define GO_WEBSITE             "https://goaccess.io/";
 extern struct tm now_tm;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/src/opesys.c 
new/goaccess-1.6.2/src/opesys.c
--- old/goaccess-1.6.1/src/opesys.c     2022-06-25 18:35:28.000000000 +0200
+++ new/goaccess-1.6.2/src/opesys.c     2022-07-15 00:38:51.000000000 +0200
@@ -129,7 +129,9 @@
  * returned. */
 static char *
 get_real_android (const char *droid) {
-  if (strstr (droid, "11"))
+  if (strstr (droid, "12"))
+    return alloc_string ("Android 12");
+  else if (strstr (droid, "11"))
     return alloc_string ("Android 11");
   else if (strstr (droid, "10"))
     return alloc_string ("Android 10");
@@ -213,7 +215,9 @@
  * returned. */
 static char *
 get_real_mac_osx (const char *osx) {
-  if (strstr (osx, "12.0"))
+  if (strstr (osx, "13.0"))
+    return alloc_string ("macOS 12 Ventura");
+  else if (strstr (osx, "12.0"))
     return alloc_string ("macOS 12 Monterey");
   else if (strstr (osx, "11.0"))
     return alloc_string ("macOS 11 Big Sur");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/src/parser.c 
new/goaccess-1.6.2/src/parser.c
--- old/goaccess-1.6.1/src/parser.c     2022-06-30 16:17:12.000000000 +0200
+++ new/goaccess-1.6.2/src/parser.c     2022-07-14 23:42:03.000000000 +0200
@@ -864,7 +864,7 @@
     if (!(tkn = parse_string (&(*str), end, MAX (dspc, fmtspcs) + 1)))
       return spec_err (logitem, SPEC_TOKN_NUL, *p, NULL);
 
-    if (str_to_time (tkn, dfmt, &tm) != 0 || set_date (&logitem->date, tm) != 
0) {
+    if (str_to_time (tkn, dfmt, &tm, 1) != 0 || set_date (&logitem->date, tm) 
!= 0) {
       spec_err (logitem, SPEC_TOKN_INV, *p, tkn);
       free (tkn);
       return 1;
@@ -881,7 +881,7 @@
     if (!(tkn = parse_string (&(*str), end, 1)))
       return spec_err (logitem, SPEC_TOKN_NUL, *p, NULL);
 
-    if (str_to_time (tkn, tfmt, &tm) != 0 || set_time (&logitem->time, tm) != 
0) {
+    if (str_to_time (tkn, tfmt, &tm, 1) != 0 || set_time (&logitem->time, tm) 
!= 0) {
       spec_err (logitem, SPEC_TOKN_INV, *p, tkn);
       free (tkn);
       return 1;
@@ -897,7 +897,7 @@
     if (!(tkn = parse_string (&(*str), end, 1)))
       return spec_err (logitem, SPEC_TOKN_NUL, *p, NULL);
 
-    if (str_to_time (tkn, tfmt, &tm) != 0 || set_date (&logitem->date, tm) != 
0 ||
+    if (str_to_time (tkn, tfmt, &tm, 1) != 0 || set_date (&logitem->date, tm) 
!= 0 ||
         set_time (&logitem->time, tm) != 0) {
       spec_err (logitem, SPEC_TOKN_INV, *p, tkn);
       free (tkn);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/src/ui.c new/goaccess-1.6.2/src/ui.c
--- old/goaccess-1.6.1/src/ui.c 2022-06-30 16:17:04.000000000 +0200
+++ new/goaccess-1.6.2/src/ui.c 2022-07-14 23:42:03.000000000 +0200
@@ -159,6 +159,8 @@
  * time_t to tm as local time */
 void
 generate_time (void) {
+  if (conf.tz_name)
+    set_tz ();
   timestamp = time (NULL);
   localtime_r (&timestamp, &now_tm);
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/src/util.c 
new/goaccess-1.6.2/src/util.c
--- old/goaccess-1.6.1/src/util.c       2022-06-30 16:17:04.000000000 +0200
+++ new/goaccess-1.6.2/src/util.c       2022-07-14 23:42:03.000000000 +0200
@@ -32,8 +32,8 @@
 #define _LARGEFILE64_SOURCE
 #define _FILE_OFFSET_BITS 64
 
-#define _XOPEN_SOURCE     700
 #define _GNU_SOURCE
+#define _DEFAULT_SOURCE
 
 #include <arpa/inet.h>
 #include <ctype.h>
@@ -520,7 +520,7 @@
   return timegm (&tmp) - src->tm_gmtoff;
 }
 
-static void
+void
 set_tz (void) {
   char tz[TZ_NAME_LEN] = { 0 };
 
@@ -541,7 +541,7 @@
  * On success, 0 is returned. */
 #pragma GCC diagnostic ignored "-Wformat-nonliteral"
 int
-str_to_time (const char *str, const char *fmt, struct tm *tm) {
+str_to_time (const char *str, const char *fmt, struct tm *tm, int tz) {
   time_t t;
   char *end = NULL, *sEnd = NULL;
   unsigned long long ts = 0;
@@ -576,7 +576,9 @@
 
     seconds = (us) ? ts / SECS : ((ms) ? ts / MILS : ts);
 
-    set_tz ();
+    if (conf.tz_name && tz)
+      set_tz ();
+
     /* if GMT needed, gmtime_r instead of localtime_r. */
     localtime_r (&seconds, tm);
 
@@ -587,7 +589,7 @@
   if (end == NULL || *end != '\0')
     return 1;
 
-  if (!conf.tz_name)
+  if (!tz || !conf.tz_name)
     return 0;
 
   if ((t = tm2time (tm)) == -1) {
@@ -613,7 +615,8 @@
   timestamp = time (NULL);
   localtime_r (&timestamp, &now_tm);
 
-  if (str_to_time (data, from, &tm) != 0)
+  /* This assumes that the the given date is already in the correct timezone. 
*/
+  if (str_to_time (data, from, &tm, 0) != 0)
     return 1;
 
   /* if not a timestamp, use current year if not passed */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/goaccess-1.6.1/src/util.h 
new/goaccess-1.6.2/src/util.h
--- old/goaccess-1.6.1/src/util.h       2022-06-30 16:17:04.000000000 +0200
+++ new/goaccess-1.6.2/src/util.h       2022-07-14 23:42:03.000000000 +0200
@@ -96,13 +96,14 @@
 int ptr2int(char *ptr);
 int str2int (const char *date);
 int str_inarray (const char *s, const char *arr[], int size);
-int str_to_time (const char *str, const char *fmt, struct tm *tm);
+int str_to_time (const char *str, const char *fmt, struct tm *tm, int tz);
 int valid_output_type (const char *filename);
 off_t file_size (const char *filename);
 size_t append_str (char **dest, const char *src);
 uint32_t djb2(const unsigned char *str);
 uint32_t ip_to_binary (const char *ip);
 void genstr(char *dest, size_t len);
+void set_tz (void);
 void strip_newlines (char *str);
 void xstrncpy (char *dest, const char *source, const size_t dest_size);
 

Reply via email to