src/strip.vala
authorAlan Knowles <alan@roojs.com>
Wed, 9 May 2018 09:00:13 +0000 (17:00 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 9 May 2018 09:00:13 +0000 (17:00 +0800)
src/strip.vala

index 40f8658..6d678c1 100644 (file)
@@ -715,7 +715,7 @@ public class Strip : GLib.Object {
                                        var timez = GMime.utils_header_decode_date(dbits[1], null);
                                        if (timez != 0) {
                                                mailtime = new DateTime.from_unix_utc(timez);
-                                               this.created_date = dts.format("%Y-%m-%d %H:%M:%S");
+                                               this.created_date = mailtime.format("%Y-%m-%d %H:%M:%S");
                                                // if it's not mailfort we can use that date to determine where to store it...
                                                if (!StripApplication.opt_scan_mailfort) {
                                                        this.created_dir = mailtime.format("/%Y/%m/%d");