diff --git a/main.c b/main.c index f0514f7..d1fad56 100644 --- a/main.c +++ b/main.c @@ -244,14 +244,13 @@ int main(int argc,char **argv,char** envp) time_t now ; char * locale; char * language; - char * ptr; + //char * ptr; language = getenv("LANGUAGE"); - ptr = strtok (language, ":"); -locale = setlocale(LC_ALL,""); - locale = setlocale(LC_ALL,ptr); + strtok (language, ":"); + locale = setlocale(LC_ALL,language); time( &now ); - sprintf( date, "%s", ctime(&now)); + sprintf( date, "%s", frtime(now)); date[strlen(date)-1] = 0; if ( (fh = fopen(logfile, "a")) == NULL) {