Numeric date

Numeric date

by Miguel Mendez -
Number of replies: 5

Hi!

I am using Moodle on Red Hat 8 with MySQL, it's working great, but the dates are in english, reading in these forums I searched in the server if spanish is installed, but only english is, the server is running other applications so is not easy to reinstall the OS.

My question is, can I change the way the dates appears?, I mean change the Tuesday, 22 Apr 2003, 11:11  to 22-04-03, 11:11.

Thanks a lot for your help.

Miguel Mendez.
Mexico City.

Average of ratings: -
In reply to Miguel Mendez

Re: Numeric date

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Locales are usually all installed on Redhat, try typing "locale -a" at the command line - do you get a big list of names?

The ability to reformat the dates (by editing strings in the language packs) is a new feature since 1.0.8.1 - you can try a recent nightly version if you really need it.

But I would recommend you try fixing the locale thing first ... even if it's not installed it should be easy to find the right rpm and install it without affecting running application (or reinstalling or in fact even rebooting Mamatheka )
In reply to Martin Dougiamas

Re: Numeric date

by Miguel Mendez -

Hi Martin!

I checked and in the list only have en_something, nothing else sad.gif

I'm searching for something that can help me install another locale, but no luck until now.

I'll still searching, if I can't find anything I'll try to install a newer version of moodle.

Thanks a lot!

Miguel.

In reply to Miguel Mendez

Re: Numeric date

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Try http://rpmfind.net/linux/RPM/contrib/noarch/noarch/locales-es-1.1-7.noarch.html

You might have to move the directory ... on my Redhat 7.3 system they are stored in /usr/lib/locale, not /usr/share/locale as these seem to be.
In reply to Martin Dougiamas

Re: Numeric date

by Miguel Mendez -

Hi Martin!

Thanks a lot for the link, but I couldn't make it work. The rpm installed well, I moved the directory, but nothing, if I type locale -a still not appears anything with es_

Even I try use localedef and export, but the most I make is type date (on console) and appeared in spanish, but when I logoff and login again, still in english.

Also, I want to ask you about something that happened, we're making exams to people of different states in Mexico (using moodle of course biggrin.gif), I made 5 different tests each one as a category,  so when I add a new course, I just add the the questions from the categories. Everything works great except the last 2 courses, the results weren't accurate, I entered to edit, saved the test again, and the results appeared correct this time, What do you think happened?

Thanks a lot!

Miguel.

In reply to Miguel Mendez

Re: Numeric date

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Strange. On my Redhat system the locales are part of the standard rpm glibc-common-2.2.5-40 ... so I don't understand why your system doesn't have them. Maybe you can reinstall that rpm from CD-ROM.

As for the quiz thing, you HAVE to use the 'save grades' button with Moodle 1.0.8.1 when creating a quiz. Fixed in 1.0.9.