summaryrefslogtreecommitdiffstats
path: root/src/fax.cs
diff options
context:
space:
mode:
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;
}