#! /bin/sh /usr/share/dpatch/dpatch-run
## pretty_date_format.dpatch by Mirco Bauer <meebey@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad gfax-0.7.6~/src/fax.cs gfax-0.7.6/src/fax.cs
--- gfax-0.7.6~/src/fax.cs	2006-11-21 03:50:20.000000000 +0100
+++ gfax-0.7.6/src/fax.cs	2008-04-12 14:29:21.000000000 +0200
@@ -248,9 +248,12 @@
 						hq.Sender = sa[2];
 					else
 						hq.Sender = "";
-					if ( sa[3].Length != 0 )
-						hq.TimeReceived = sa[3];
-					else
+					if ( sa[3].Length != 0 ) {
+						string[] datetime = sa[3].Split(' ');
+						string date = datetime[0].Replace(":", "-");
+						string time = datetime[1];
+						hq.TimeReceived = String.Format("{0} {1}", date, time);
+					} else
 						hq.TimeReceived = "";	
 					if ( sa[4].Length != 0 )
 						hq.Filename = sa[4].Trim();
diff -urNad gfax-0.7.6~/src/hylafax.cs gfax-0.7.6/src/hylafax.cs
--- gfax-0.7.6~/src/hylafax.cs	2008-04-12 14:20:05.000000000 +0200
+++ gfax-0.7.6/src/hylafax.cs	2008-04-12 14:20:08.000000000 +0200
@@ -743,7 +743,7 @@
 				data = read(mainstream, mainclient);
 			}
 			if (folder == "recvq") {
-				jobfmt = "\"%4p=N%1z=%14.14s=%7t=%f\"";
+				jobfmt = "\"%4p=N%1z=%14.14s=%Y=%f\"";
 				write(mainstream, "RCVFMT "+jobfmt+"\n");
 				data = read(mainstream, mainclient);
 			}
