date locale set to fr
This commit is contained in:
parent
477ba6cddc
commit
dfcbb89717
9
main.c
9
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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user