Date format

Date format

от Mitsuhiro Yoshida -
Количество ответов: 2
Изображение пользователя Core developers Изображение пользователя Documentation writers Изображение пользователя Particularly helpful Moodlers Изображение пользователя Translators
Hi Martin!!

Thanks for changing some cords for multibyte language.

Let me give you one suggestion today улыбаюсь
When I was traslating Moodle into Japanese, I noticet that Date format of Moodle is a little different from Japanese one.

So... if possible could you please add Dateformat valiable to moodle.php? For example "Y/m/d(D) H:i" based on PHP Date function.

[PHP:Date]
http://www.php.net/manual/en/function.date.php
В ответ на Mitsuhiro Yoshida

Re: Date format

от Martin Dougiamas -
Изображение пользователя Core developers Изображение пользователя Documentation writers Изображение пользователя Moodle HQ Изображение пользователя Particularly helpful Moodlers Изображение пользователя Plugin developers Изображение пользователя Testers
Actually, it would need to be strftime() format, but yes, that's a good idea. I assume you're talking about the forum posts - what about dates everywhere else?
В ответ на Martin Dougiamas

Re: Date format

от Mitsuhiro Yoshida -
Изображение пользователя Core developers Изображение пользователя Documentation writers Изображение пользователя Particularly helpful Moodlers Изображение пользователя Translators
strftime()!! Good idea.

I'm talking about "Site news", forum too.
For example,
-------------
Moodle 1.0.6.4
- groovy hook, babe by Martin Dougiamas
- Monday, 25 November 2002, 12:02 AM
------------

We use this format,
- 2002/11/25(月) 12:02 AM
or 2002年11月25日(月) 12:02 AM

But I think it very tough to change all dates as flexible format. So please concentrate other development. And if you have extra time please change dates step by step улыбаюсь