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 ;
|
time_t now ;
|
||||||
char * locale;
|
char * locale;
|
||||||
char * language;
|
char * language;
|
||||||
char * ptr;
|
//char * ptr;
|
||||||
|
|
||||||
language = getenv("LANGUAGE");
|
language = getenv("LANGUAGE");
|
||||||
ptr = strtok (language, ":");
|
strtok (language, ":");
|
||||||
locale = setlocale(LC_ALL,"");
|
locale = setlocale(LC_ALL,language);
|
||||||
locale = setlocale(LC_ALL,ptr);
|
|
||||||
time( &now );
|
time( &now );
|
||||||
sprintf( date, "%s", ctime(&now));
|
sprintf( date, "%s", frtime(now));
|
||||||
date[strlen(date)-1] = 0;
|
date[strlen(date)-1] = 0;
|
||||||
if ( (fh = fopen(logfile, "a")) == NULL)
|
if ( (fh = fopen(logfile, "a")) == NULL)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user