Skip to content

Commit

Permalink
Fixed format specifiers iso8601
Browse files Browse the repository at this point in the history
  • Loading branch information
denji committed Mar 6, 2019
1 parent 3baf047 commit b0072cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ngx_http_hmac_secure_link_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ ngx_http_secure_link_variable(ngx_http_request_t *r,
sizeof("1970-09-28T12:00:00+06:00")-1, p);

/* Parse timestamp in ISO8601 format */
if (sscanf((char *)p, "%4d-%02d-%02dT%02d:%02d:%02d%c%02d:%02d",
if (sscanf((char *)p, "%4d-%02d-%02dT%02d:%02d:%02d%c%02i:%02i",
(ngx_tm_year_t *) &year, (ngx_tm_mon_t *) &month,
(ngx_tm_mday_t *) &mday, (ngx_tm_hour_t *) &hour,
(ngx_tm_min_t *) &min, (ngx_tm_sec_t *) &sec,
Expand Down

0 comments on commit b0072cf

Please sign in to comment.