summaryrefslogtreecommitdiffstats
path: root/src/fax.cs
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-03-20 11:00:59 +0100
committerGravatar Martin Szulecki2009-03-20 11:00:59 +0100
commit2f09cc7cd6c86ece05864055eca4ddfd78c03179 (patch)
tree0f313ff11a4cbc7b0161c643bd6dc13b45ff3bea /src/fax.cs
parent4e57bfa0652a3c4eb42c79ddbe7a1d00b4aea79c (diff)
downloadgfax-master.tar.gz
gfax-master.tar.bz2
Fix crashers due to bad data parsing and bad treeview cell sortingHEADmaster
Diffstat (limited to 'src/fax.cs')
-rwxr-xr-xsrc/fax.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fax.cs b/src/fax.cs
index 91d0f0f..d180971 100755
--- a/src/fax.cs
+++ b/src/fax.cs
@@ -267,10 +267,10 @@ namespace gfax {
hq.Sender = "";
if ( sa[3].Length != 0 )
{
- try {
- hq.TimeReceived = (DateTime)System.DateTime.ParseExact(sa[3], "ddMMMyy", System.Globalization.CultureInfo.InvariantCulture);
+ try {
+ hq.TimeReceived = (DateTime)System.DateTime.ParseExact(sa[3].Trim(), "yyyy:MM:dd HH:mm:ss", System.Globalization.CultureInfo.InvariantCulture);
}
- catch(FormatException e )
+ catch(FormatException e)
{
hq.TimeReceived = null;
}