Skip to content

Commit

Permalink
fix invalid javascript date generation, introduced with netdata#299
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsaou committed Apr 23, 2016
1 parent 881fba9 commit a470578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ void buffer_jsdate(BUFFER *wb, int year, int month, int day, int hours, int minu
*p++ = '0' + year / 1000; year %= 1000;
*p++ = '0' + year / 100; year %= 100;
*p++ = '0' + year / 10;
*p++ = '0' + year % 100;
*p++ = '0' + year % 10;
*p++ = ',';
*p = '0' + month / 10; if (*p != '0') p++;
*p++ = '0' + month % 10;
Expand Down

0 comments on commit a470578

Please sign in to comment.