Description: respect combined custom date (-d) and classic (-c) output
 Previously, using a custom date will cause hodie to ignore classic (AUC) output.
 This makes it possible to use classic output together with custom dates.
Author: Peter Ganter
Reviewed-by: Mikael Johansson <mikael@johanssons.org>
Origin: upstream, https://github.com/michiexile/hodie/pull/2
Last-Update: 2015-01-20
Index: hodie/src/hodie.c
===================================================================
--- hodie.orig/src/hodie.c
+++ hodie/src/hodie.c
@@ -134,8 +134,12 @@ main(int argc, char** argv)
         strncpy(dateval,argv[optind++],16);
     }
 
-    if(custom)
-        parse_date(datetype, dateval, p_ts);
+    if(custom) {
+      parse_date(datetype, dateval, p_ts);
+      if (auc) {
+        p_ts->tm_year=p_ts->tm_year+auc_base;
+      }
+    }
 
     if(hodie_isleap(p_ts->tm_year)==1)
        leap=1;
