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
Paulo Matos made changes - 22/Nov/06 07:20 AM
Field Original Value New Value
Attachment MDL-7645_userdate_in_moodlelib.patch [ 10405 ]
Petr Skoda made changes - 30/Jan/07 10:37 PM
Assignee Martin Dougiamas [ dougiamas ] Petr ?koda [ skodak ]
Petr Skoda made changes - 23/Mar/07 02:49 AM
Affects Version/s 1.6.2 [ 10119 ]
Affects Version/s 1.5.4 [ 10109 ]
Affects Version/s 1.6.3 [ 10140 ]
Affects Version/s 1.5 [ 10102 ]
Component/s Languages [ 10089 ]
Affects Version/s 1.8 [ 10130 ]
Affects Version/s 1.5.2 [ 10107 ]
Affects Version/s 1.6.1 [ 10118 ]
Affects Version/s 1.5.1 [ 10106 ]
Affects Version/s 1.5.3 [ 10108 ]
Component/s Lib [ 10096 ]
Petr Skoda made changes - 23/Mar/07 02:54 AM
Summary Problem with time representation in multilingual environment (userdate) Problem with time representation in pt language pack
Eloy Lafuente (stronk7) made changes - 23/Mar/07 02:58 AM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Paulo Matos made changes - 27/Feb/08 02:49 AM
Resolution Fixed [ 1 ]
Status Resolved [ 5 ] Reopened [ 4 ]
Paulo Matos made changes - 11/Mar/08 04:29 AM
Affects Version/s 1.8.3 [ 10230 ]
Affects Version/s 1.8.1 [ 10213 ]
Affects Version/s 1.6 [ 10110 ]
Affects Version/s 1.8.2 [ 10220 ]
Summary Problem with time representation in pt language pack Problem with time representation in multilang environment with some locales
Affects Version/s 1.7 [ 10120 ]
Affects Version/s 1.8.4 [ 10242 ]
Paulo Matos made changes - 02/Apr/08 10:25 PM