tm.tm_isdst = -1;
if (tp)
- *tp = mutt_date_make_time(&tm, 0);
+ *tp = mutt_date_make_time(&tm, false);
return true;
}
* Convert a struct tm to time_t, but don't take the local timezone into
* account unless "local" is nonzero
*/
-time_t mutt_date_make_time(struct tm *t, int local)
+time_t mutt_date_make_time(struct tm *t, bool local)
{
time_t g;
tz_out->zoccident = zoccident;
}
- time_t time = mutt_date_make_time(&tm, 0);
+ time_t time = mutt_date_make_time(&tm, false);
/* Check we haven't overflowed the time (on 32-bit arches) */
if ((time != TIME_T_MAX) && (time != TIME_T_MIN))
time += tz_offset;
if (s[0] == '+')
tz = -tz;
- return mutt_date_make_time(&t, 0) + tz;
+ return mutt_date_make_time(&t, false) + tz;
}
/**
time_t mutt_date_local_tz(time_t t);
char * mutt_date_make_date(char *buf, size_t buflen);
int mutt_date_make_imap(char *buf, size_t buflen, time_t timestamp);
-time_t mutt_date_make_time(struct tm *t, int local);
+time_t mutt_date_make_time(struct tm *t, bool local);
int mutt_date_make_tls(char *buf, size_t buflen, time_t timestamp);
void mutt_date_normalize_time(struct tm *tm);
time_t mutt_date_parse_date(const char *s, struct Tz *tz_out);
p = tstr + 8;
goto bail;
}
- tmp.gen_time = mutt_date_make_time(&time, 0);
+ tmp.gen_time = mutt_date_make_time(&time, false);
}
else /* gpg 2.0.10+ uses seconds since 1970-01-01 */
{
/* Since we allow two dates to be specified we'll have to adjust that. */
adjust_date_range(&min, &max);
- pat->min = mutt_date_make_time(&min, 1);
- pat->max = mutt_date_make_time(&max, 1);
+ pat->min = mutt_date_make_time(&min, true);
+ pat->max = mutt_date_make_time(&max, true);
return true;
}