MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » MediaPortal 1 Talk


MediaPortal 1 Talk General talk regarding our HTPC-software MediaPortal 1 takes place here.

Reply
 
Thread Tools Display Modes
Old 2006-12-11, 02:34   #1 (permalink)
Portal Member
 
Join Date: Dec 2006
Location: Wellington
Posts: 55
Thanks: 0
Thanked 1 Time in 1 Post

Country:

My System

Default 24-time Format in MP 0.2.1.0

Hi:

I'm a relatively newbie to MP, and am currently running 0.2.1.0. I'd like to have the tiem display on the MP screen to display is 24-hour time format as opposed to AM/PM? I have 24-hour set in Windows XP Control Panel --> Regional Settings, but my MP screen still display in AM/PM. I'm checked out configuration.exe --> plugins --> home, and could only find the date format but not time format.

Anyone has any ideas if it's possible to set the time display for 24-hour as opposed to AM/PM?

Thanks.
wlgspotter is offline   Reply With Quote
Old 2007-11-04, 05:47   #2 (permalink)
Portal Member
 
Join Date: Dec 2006
Location: Wellington
Posts: 55
Thanks: 0
Thanked 1 Time in 1 Post

Country:

My System

Default

Hi everyone:

It's been a while since I've posted this initial question, and MP has gone from 0.2.1 .0 to 0.2.3.0 RC3, however, I'm still seeing the problem in that I can't get MP to display in 24-hour time format, despite it being set in my windows --> Control Panel --> Regional Settings. I'm based in New Zealand and had the settings set to English (New Zealand).

I had a play with the settings and came to realise that if I set the Control Panel Regional Settings to one of the European languages (i.e. German or English UK) then MP will display in 24-hour time format.

Could this perhaps be some kind of bug that someone could look at?

Thanks.
wlgspotter is offline   Reply With Quote
Old 2007-11-04, 08:47   #3 (permalink)
Project Coordinator
 
infinityloop's Avatar
 
Join Date: Dec 2004
Location: 127.0.0.1
Age: 29
Posts: 6,226
Thanks: 175
Thanked 137 Times in 98 Posts

Country:

My System

Default

does windows display the time correctly (24h) when you set "to English (New Zealand)" ?
or does it display am/pm then?
__________________
regards
chris

MediaPortal Project Coordinator
Test Team Leader

Do not start to moan if something is not working as you want it to be.
Remember that MediaPortal is Open Source.
YOU can improve it!
infinityloop is offline   Reply With Quote
Old 2007-11-04, 09:03   #4 (permalink)
Portal Member
 
Join Date: Dec 2006
Location: Wellington
Posts: 55
Thanks: 0
Thanked 1 Time in 1 Post

Country:

My System

Default

Quote:
Originally Posted by infinityloop View Post
does windows display the time correctly (24h) when you set "to English (New Zealand)" ?
or does it display am/pm then?
Yes it does - windows display in 24-hour when I set to English (New Zealand). But MediaPortal only shows in AM/PM....
wlgspotter is offline   Reply With Quote
Old 2007-11-04, 17:25   #5 (permalink)
Portal Member
 
Join Date: Mar 2007
Posts: 97
Thanks: 6
Thanked 1 Time in 1 Post

Country:

My System

Default

I have also faced this behaviour and found that MP seems to decide whether or not to use a 12-hour time format (with AM/PM) or a 24-hour format, based on the country or region defined in Windows, and not based on the Windows time format that's defined for the Windows system tray (=notification area) clock.
Not sure if this is intentional, but to me it would be more intuitive to have MP use the same time format as the Windows clock, and not based on the country/region.
Mercbac is offline   Reply With Quote
Old 2007-11-04, 20:01   #6 (permalink)
Portal Member
 
Join Date: Dec 2006
Location: Wellington
Posts: 55
Thanks: 0
Thanked 1 Time in 1 Post

Country:

My System

Default

Quote:
Originally Posted by Mercbac View Post
I have also faced this behaviour and found that MP seems to decide whether or not to use a 12-hour time format (with AM/PM) or a 24-hour format, based on the country or region defined in Windows, and not based on the Windows time format that's defined for the Windows system tray (=notification area) clock.
Not sure if this is intentional, but to me it would be more intuitive to have MP use the same time format as the Windows clock, and not based on the country/region.
Yes I think it seem so that way... I've tried to use English (Australia) and English (US) and MP uses AM/PM, but when I switch to Engish (UK) or even German MP uses 24-hour clock.

And I second Mercbac's suggestion that I think it would be more intuitive for MP to use the same time format as the Window clock, or better still allow the user to customise it to their liking, much similar to how you can now customise the date format using the "Home" plugin.
wlgspotter is offline   Reply With Quote
Old 2007-12-19, 23:22   #7 (permalink)
pbb
Docs Team
 
Join Date: Oct 2006
Location: Trondheim
Age: 36
Posts: 297
Thanks: 5
Thanked 20 Times in 9 Posts

Country:

My System

Send a message via ICQ to pbb Send a message via MSN to pbb Send a message via Yahoo to pbb
Default

As a programmer, I am quite surprised about MP using it's own hard-coded list to decide whether to display 24- or 12-hour time, while Windows offers an easily obtainable, user-configurable and uniformly used date and time configuration.

Is there something that MP is using, that doesn't make it as easy to retrieve that value?

Anyway, I agree with above posters, MP ought to use Windows' regional settings preferences to show date and time. (This includes removing the date formatting from the Home plugin configuration.)
pbb is offline   Reply With Quote
Old 2007-12-21, 05:20   #8 (permalink)
Portal Member
 
rekenaar's Avatar
 
Join Date: Dec 2006
Age: 37
Posts: 656
Thanks: 21
Thanked 26 Times in 24 Posts

Country:

My System

Default

I changed the GetTime code in MediaPortal.cs to read the current user setting from the registry. On my PC, it now correctly handle the switch between am/pm or 24-hour format.

By the way - this was still flagged as TODO in the code, so technically, it was not a bug

I am not a MP developer and therefore cannot commit it to SVN. The changed file is attached. If one of the developers wants to look at it and commit to SVN.

One thing - it is now also showing the seconds. The time is still only updated every minute. Should I remove the display of the seconds (I think so)?
Attached Files
File Type: zip MediaPortal.zip (26.4 KB, 6 views)
__________________
Ondersteun Afrikaans!
******************

Rekenaar

Last edited by rekenaar; 2007-12-21 at 05:23.
rekenaar is offline   Reply With Quote
Old 2007-12-23, 19:32   #9 (permalink)
Portal Member
 
rekenaar's Avatar
 
Join Date: Dec 2006
Age: 37
Posts: 656
Thanks: 21
Thanked 26 Times in 24 Posts

Country:

My System

Default

OK, I have decided to just go ahead and remove the seconds.
Time is now displayed according to user setting either HH:mm or hh:mm AM/PM.

Source file attached. I only changed in the GetTime code block.

Still begging DEVS to incorporate this enhancement in SVN.


Off Topic:
Also my other post, this time a with a bug-fix, without any reaction from DEVS: Slideshow bug
Attached Files
File Type: zip MediaPortal.zip (26.3 KB, 3 views)
__________________
Ondersteun Afrikaans!
******************

Rekenaar
rekenaar is offline   Reply With Quote
Old 2007-12-24, 10:40   #10 (permalink)
pbb
Docs Team
 
Join Date: Oct 2006
Location: Trondheim
Age: 36
Posts: 297
Thanks: 5
Thanked 20 Times in 9 Posts

Country:

My System

Send a message via ICQ to pbb Send a message via MSN to pbb Send a message via Yahoo to pbb
Default

Rekenaar, did you submit them to SourceForge, according to the patch policy?
pbb is offline   Reply With Quote
Reply

Bookmarks

Tags
24time, format

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bad time format when manually scheduling recording AKALuke Fixed 0.2 RC4 Bugs 3 2006-06-23 00:31
Hauppauge remote, not working. Haplo General Support 17 2006-02-18 05:24
Hauppauge 45 Buttons in My Video Fullscreen/back button bug miljbee The old Bugreport Forum 4 2006-02-10 19:51
Loosing control using Hauppage remote slyhne General Support 8 2006-02-10 18:23
RC2 causes laptop to hibernate every 5 mins ms2005 MediaPortal 1 Talk 6 2005-12-19 15:26


All times are GMT +1. The time now is 18:51.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden