1
0

date locale set to fr

This commit is contained in:
Daniel Tartavel 2020-05-08 15:32:55 +02:00
parent 477ba6cddc
commit dfcbb89717

9
main.c
View File

@ -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)
{