mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 07:20:55 +01:00
ircd: Tweak the smalldate() format.
This commit is contained in:
parent
e8efe326d6
commit
e4acdbf772
1 changed files with 3 additions and 2 deletions
|
@ -90,12 +90,13 @@ ircd::smalldate(const mutable_buffer &buf,
|
|||
localtime_r(<ime, <);
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue