$string['strftimedate'] = '%%d %%B %%Y';
$string['strftimedateshort'] = '%%d %%B';
$string['strftimedatetime'] = '%%d %%B %%Y, %%I:%%M %%p';
+$string['strftimedatetimeshort'] = '%%d/%%m/%%y, %%H:%%M';
$string['strftimedaydate'] = '%%A, %%d %%B %%Y';
$string['strftimedaydatetime'] = '%%A, %%d %%B %%Y, %%I:%%M %%p';
$string['strftimedayshort'] = '%%A, %%d %%B';
'parentlanguage', 'strftimedate', 'strftimedateshort', 'strftimedatetime',
'strftimedaydate', 'strftimedaydatetime', 'strftimedayshort', 'strftimedaytime',
'strftimemonthyear', 'strftimerecent', 'strftimerecentfull', 'strftimetime',
- 'thischarset', 'thisdirection', 'thislanguage');
+ 'thischarset', 'thisdirection', 'thislanguage', 'strftimedatetimeshort');
$filetocheck = 'langconfig.php';
$defaultlang = 'en_utf8';
if ($messages = get_records_select('message_read', "(useridto = '$USER->id' AND useridfrom = '$userid' AND timeread > '$start' $lastsql) OR (useridto = '$userid' AND useridfrom = '$USER->id' AND timeread > '$start' $lastsql)")) {
foreach ($messages as $message) {
- $time = userdate($message->timecreated, get_string('strftimedaytime'));
-
+ $time = userdate($message->timecreated, get_string('strftimedatetimeshort'));
+
if ($message->useridfrom == $USER->id) {
$fullname = $mefullname;
} else {
if ($messages = get_records_select('message', "useridto = '$userid' AND useridfrom = '$USER->id' $lastsql")) {
foreach ($messages as $message) {
- $time = userdate($message->timecreated, get_string('strftimedaytime'));
+ $time = userdate($message->timecreated, get_string('strftimedatetimeshort'));
$printmessage = format_text($message->message, $message->format, $options, 0);
$printmessage = '<div class="message other"><span class="author">'.$mefullname.'</span> '.
if ($messages = get_records_select('message', "useridto = '$USER->id' AND useridfrom = '$userid' $lastsql")) {
foreach ($messages as $message) {
- $time = userdate($message->timecreated, get_string('strftimedaytime'));
+ $time = userdate($message->timecreated, get_string('strftimedatetimeshort'));
$printmessage = format_text($message->message, $message->format, $options, 0);
$printmessage = '<div class="message other"><span class="author">'.$userfullname.'</span> '.
echo "</tr>\n";
$blockedcount = 0;
- $dateformat = get_string('strftimedatetime');
+ $dateformat = get_string('strftimedatetimeshort');
$strcontext = get_string('context', 'message');
foreach ($messages as $message) {
if ($format) {
$dateformat = $format;
} else {
- $format = get_string('strftimedaytime');
+ $format = get_string('strftimedatetimeshort');
}
}
$time = userdate($message->timecreated, $dateformat);
if ($messages = get_records_select('message', "useridto = '$USER->id' AND useridfrom = '$userid'",
'timecreated')) {
foreach ($messages as $message) {
- $time = userdate($message->timecreated, get_string('strftimedaytime'));
+ $time = userdate($message->timecreated, get_string('strftimedatetimeshort'));
$options = new object();
$options->para = false;
$options->newlines = true;
$message = format_text($message, $format, $options);
- $time = userdate(time(), get_string('strftimedaytime'));
+ $time = userdate(time(), get_string('strftimedatetimeshort'));
$message = '<div class="message me"><span class="author">'.fullname($USER).'</span> '.
'<span class="time">['.$time.']</span>: '.
'<span class="content">'.$message.'</span></div>';