← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 730476] Re: Part of the time appears cut off when displaying the day of the week and date

 

Ok, in my case it was a different problem. I had configured language
support to display numbers and dates in german, with an otherwise
english installation. My custom date format included the name of the
day. The indicator applet was then using one locale to measure the
maximum size of the string, and another to actually render the string.

In the code, measuring is done using the strftime function while the
rendering uses g_date_time_format. It seems these two functions use
different parts of the locale settings.

I hacked the code to use g_date_time_format in both cases and it is now
displaying correctly for me.

** Patch added: "Use g_date_time_format instead of strftime for measuring"
   https://bugs.launchpad.net/ubuntu/+source/indicator-datetime/+bug/730476/+attachment/2281408/+files/g_date_time_format.patch

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xserver-xorg-video-intel in Ubuntu.
https://bugs.launchpad.net/bugs/730476

Title:
  Part of the time appears cut off when displaying the day of the week
  and date

To manage notifications about this bug go to:
https://bugs.launchpad.net/indicator-datetime/+bug/730476/+subscriptions