Issue Details (XML | Word | Printable)

Key: MDL-7645
Type: Bug Bug
Status: Reopened Reopened
Priority: Major Major
Assignee: Petr Skoda
Reporter: Paulo Matos
Votes: 0
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Problem with time representation in multilang environment with some locales

Created: 22/Nov/06 07:15 AM   Updated: 01/May/08 03:28 AM
Return to search
Component/s: Languages
Affects Version/s: 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4
Fix Version/s: None

File Attachments: 1. Text File MDL-7645_userdate_in_moodlelib.patch (0.7 kB)
2. Text File moodle-1.8.4plus-MDL7645_userdate_in_moodlelib.patch (0.8 kB)

Environment: All

Participants: David Wojak, Eloy Lafuente (stronk7), Juan Segarra Montesinos, Paulo Matos and Petr Skoda
Security Level: None
Resolved date: 23/Mar/07
Affected Branches: MOODLE_18_STABLE


 Description  « Hide
The problem:
php's strftime uses locale information and %p (ante-meridian, post-meridian modifier) is setted to null in many locales,
which is partially correct because it is not used on that locale.

If you have a multilingual environment you still have one locale, in my case portuguese and we use 24h format, however
there are pages written in english where the time representation uses %p, thus the effect is that time is represented in a
12-hour format and with a blank for %p.

Solution:
Set a default if %p is empty.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Skoda committed 2 files to 'Lang CVS' - 23/Mar/07 03:49 AM
MDL-7645 problem with time representation in portuguese language pack
MODIFY pt_utf8/moodle.php   Rev. 1.15    (+1 -1 lines)
MODIFY pt_utf8/langconfig.php   Rev. 1.3    (+1 -1 lines)
Petr Skoda committed 2 files to 'Lang CVS' - 02/Apr/08 10:53 PM
MDL-7645 fixed time format
MODIFY pt_utf8/message.php   Rev. 1.7    (+2 -2 lines)
MODIFY de_utf8/message.php   Rev. 1.8    (+1 -1 lines)