Skip to content

Commit 6f08fdd

Browse files
author
Peter Gantner (nephros)
committed
respect combined custom date (-d) and classic (-c) output
1 parent 798e36a commit 6f08fdd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/hodie.c

+6-2
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,12 @@ main(int argc, char** argv)
134134
strncpy(dateval,argv[optind++],16);
135135
}
136136

137-
if(custom)
138-
parse_date(datetype, dateval, p_ts);
137+
if(custom) {
138+
parse_date(datetype, dateval, p_ts);
139+
if (auc) {
140+
p_ts->tm_year=p_ts->tm_year+auc_base;
141+
}
142+
}
139143

140144
if(hodie_isleap(p_ts->tm_year)==1)
141145
leap=1;

0 commit comments

Comments
 (0)