ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Date and time format


  • 2009-01-10 17:08:02

    Date and time format

    Hello all. I have version 1.6.2 installed w/ all patches.

    I'm wondering how I can change the date format to mm/dd/yyyy.

    I also want to change the time format from military time to AM/PM (i.e. 14:00 becomes 2:00PM). Of course, then users would need to be able to select their timezone so all times would be local.

    Is there a mod out there that can do this?

    Thanks.

  • 2009-01-11 14:22:42

    Re: Date and time format

    Date formatting is part of translation. Using php date codes in the language in which a date appears, can be used to produce whatever format you need.

    See the translator documentation for more about dates and translating.

    http://www.atutor.ca/atutor/docs/translate.php

  • 2009-01-20 01:02:33

    Re: Date and time format

    Ok. I can do that. However, do you know some of the file(s) that I'll need to adjust? I really don't know where to begin.

    THanks!

  • 2009-01-20 09:17:07

    Re: Date and time format

    They are not in files. They are in the language in the database. You will need to search through the language to find the dates.

  • 2009-01-20 18:24:46

    Re: Date and time format

    Greg,

    I am a total newbie at MySQL. I searched for "%%l %%F %%j, %%Y date" (all words) and it returned...

    "2 match(es) inside table AT_language_text"

    From there though, I have no idea about how to find the specific data to edit to the date format that I want.

    Can you give me a little more help from here?

    Thank you.

  • 2009-01-20 18:35:01

    Re: Date and time format

    You should not need to know MySQL.

    Go to
    Administrator>System Preferences>Language

    Use the Editor (or Translate) to search for "date" or "format", which should turn up most language items with dates in it.

    If you haven't already, read the section in the translator documentation on formatting dates. And see the PHP reference there that describes date codes.

  • 2009-01-20 23:14:04

    Re: Date and time format

    Excellent! That worked.

    Thanks Greg

  • 2009-01-20 23:14:05

    Re: Date and time format

    Excellent! That worked.

    Thanks Greg