changed date format to %F

This commit is contained in:
Serghey Rodin 2011-11-28 14:45:03 +02:00
commit 8fe4b05a06
12 changed files with 75 additions and 179 deletions

View file

@ -41,7 +41,7 @@ int main (int argc, char** argv) {
time_t lt = time(NULL);
struct tm* ptr = localtime(&lt);
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+");