mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
changed date format to %F
This commit is contained in:
parent
a1b8f49868
commit
8fe4b05a06
12 changed files with 75 additions and 179 deletions
|
@ -41,7 +41,7 @@ int main (int argc, char** argv) {
|
|||
time_t lt = time(NULL);
|
||||
struct tm* ptr = localtime(<);
|
||||
char str[280];
|
||||
strftime(str, 100, "%m-%d-%y %H:%m:%S ", ptr);
|
||||
strftime(str, 100, "%Y-%m-%d %H:%M:%S ", ptr);
|
||||
|
||||
// openning log file
|
||||
FILE* pFile = fopen ("/usr/local/vesta/log/auth.log","a+");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue