diff -pruN 1.04-11/debian/changelog 1.04-12/debian/changelog
--- 1.04-11/debian/changelog	2022-07-20 07:03:42.000000000 +0000
+++ 1.04-12/debian/changelog	2022-08-04 06:00:35.000000000 +0000
@@ -1,3 +1,10 @@
+parsinsert (1.04-12) unstable; urgency=medium
+
+  * Fix error: ‘time’ was not declared in this scope
+    Closes: #1016250
+
+ -- Andreas Tille <tille@debian.org>  Thu, 04 Aug 2022 08:00:35 +0200
+
 parsinsert (1.04-11) unstable; urgency=medium
 
   * Disable link time optimization since it results in test suite failure
diff -pruN 1.04-11/debian/patches/gcc-12.patch 1.04-12/debian/patches/gcc-12.patch
--- 1.04-11/debian/patches/gcc-12.patch	1970-01-01 00:00:00.000000000 +0000
+++ 1.04-12/debian/patches/gcc-12.patch	2022-08-04 06:00:35.000000000 +0000
@@ -0,0 +1,15 @@
+Author; Andreas Tille <tille@debian.org>
+Last-Update: Wed, 03 Aug 2022 14:48:38 +0200
+Bug-Debian: https://bugs.debian.org/1016250
+Description: Fix error: ‘time’ was not declared in this scope
+
+--- a/ParsInsert.cpp
++++ b/ParsInsert.cpp
+@@ -43,6 +43,7 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <math.h>
++#include <ctime>
+ 
+ #ifdef _DEBUG
+ #define new DEBUG_NEW
diff -pruN 1.04-11/debian/patches/series 1.04-12/debian/patches/series
--- 1.04-11/debian/patches/series	2022-07-20 07:03:42.000000000 +0000
+++ 1.04-12/debian/patches/series	2022-08-04 06:00:35.000000000 +0000
@@ -1,2 +1,3 @@
 010_fix-gcc6.patch
 020_hardening.patch
+gcc-12.patch
