0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 00:14:07 +01:00

ircd: Tweak the smalldate() format.

This commit is contained in:
Jason Volk 2019-04-25 07:31:32 -07:00
parent e8efe326d6
commit e4acdbf772

View file

@ -90,12 +90,13 @@ ircd::smalldate(const mutable_buffer &buf,
localtime_r(&ltime, &lt);
const auto len
{
::snprintf(data(buf), size(buf), "%d/%d/%d %02d.%02d",
::snprintf(data(buf), size(buf), "%d/%d/%d_%02d:%02d:%02d",
lt.tm_year + 1900,
lt.tm_mon + 1,
lt.tm_mday,
lt.tm_hour,
lt.tm_min)
lt.tm_min,
lt.tm_sec)
};
return