zD12 / galaxium

Automatically exported from code.google.com/p/galaxium
0 stars 0 forks source link

Time of messages givin in 12h format #207

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I live in the Netherlands and the 24h format for time. The time of messages
is in the 12h format and I can't seem to change this anywhere

Original issue reported on code.google.com by thomas.vdburgt@gmail.com on 28 Jun 2008 at 3:10

GoogleCodeExporter commented 9 years ago
Is this the text or adium message display?

Original comment by paulburt...@gmail.com on 28 Jun 2008 at 5:32

GoogleCodeExporter commented 9 years ago
text, adium does not even work

Original comment by thomas.vdburgt@gmail.com on 29 Jun 2008 at 12:44

GoogleCodeExporter commented 9 years ago
Using Ubuntu 8.04 with the version found in touy ppa

Original comment by thomas.vdburgt@gmail.com on 29 Jun 2008 at 12:45

GoogleCodeExporter commented 9 years ago
Looks like this is the cause:
in MsnClientConfig.cs:

public MsnClientConfig ()
        {
            //TODO: is TwoLetterISORegionName the correct value?
            // What's PLCID for?

            RegionInfo regionInfo = RegionInfo.CurrentRegion;
            if (regionInfo == null)
                regionInfo = new RegionInfo ("US");

            _args = string.Format ("?op=GetClientConfig&Country={0}&CLCID={1:x4}&PLCID={2:x4}",
                                   regionInfo.TwoLetterISORegionName, // For now, to protect
against issues.
                                   CultureInfo.CurrentCulture.LCID,
                                   0);

            //Log.Debug (_args);

            RequestConfig (delegate { });
        }

Looks like region defaults to US which uses 12h time

Original comment by thomas.vdburgt@gmail.com on 30 Jun 2008 at 8:45

GoogleCodeExporter commented 9 years ago
The region there is just used to retrieve the client config which gives us some
vaguely useful URLs.

TextMessageDisplay.WriteTime is where the time is written out using 
ToShortTimeString
which should take the culture into account according to
http://msdn.microsoft.com/en-us/library/system.datetime.toshorttimestring.aspx

My guess is that Mono isn't detecting the correct culture information.

Original comment by paulburt...@gmail.com on 30 Jun 2008 at 12:42

GoogleCodeExporter commented 9 years ago

Original comment by dra...@gmail.com on 30 Jun 2008 at 1:52

GoogleCodeExporter commented 9 years ago

Original comment by dra...@gmail.com on 30 Jun 2008 at 1:53

GoogleCodeExporter commented 9 years ago
we simply need an option somewhere to specify the format manually, because 
there are
people like me, who live in an area where they use 24h format but use an English
version of Linux with 12h format as the default

(technically you are able to set the language to English and all the other 
locale
settings to something else, but this takes some effort to configure properly :p)

so, in other words: use the default locale time format, unless the time format 
is
specifically set to something else

Original comment by ben.motm...@gmail.com on 1 Jul 2008 at 11:59