How to change date??

How to change date??

adel Ghazikhani -
回帖数:7

Hi

I live in Iran and the date that we use in Iran is different from your date in U.S.A .

I want to know that how can I change the dates displayed.

There is a similar date for every date in your calendar for example:

18 march for us is 28 esfand.

how can I convert this date to the date I want.

回复adel Ghazikhani

Re: How to change date??

Thomas Robb -
There is a module at the URL below which could be used to convert between the Gregorian and Jalali calendars:

http://www.farsiweb.info/jalali/jalali.phps

It will perform conversions in both directions.

This would have to be incorporated into Moodle somewhere so that it could be called upon when needed.
回复Thomas Robb

Re: How to change date??

adel Ghazikhani -

Thank you very much.

Dont you have any idea where this module should be incorporated?

How dose Moodle show the dates?

Thankyou

回复adel Ghazikhani

Re: How to change date??

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
All dates are printed with the userdate() function in lib/moodlelib.php, so that where you should start.  The argument (and value stored everywhere in the database) is the number of seconds since 12:00am 1st January 1970, Greenwich Mean Time.  userdate performs the (slightly complicated) conversion of this into a time that makes sense to the current user.

Another country that needs custom dates is Thailand.
回复Martin Dougiamas

本讨论区帖子已移除

本讨论区帖子的内容已移除,无法再访问。
回复删除的用户

Re: How to change date??

Tim Hunt -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
It would be much easier for us to handle these changes if you could create a Patch file which shows just the changes (See Development:How_to_create_a_patch).

Then create a new issue in the tracker (http://tracker.moodle.org) summarising this issue and attaching your patch. Thank you.

(You might also like to read the Minor Development section of Development:Overview.)