Bug#652808: libglib2.0-0: glib fails to detect default timezone

Josselin Mouette joss at debian.org
Wed Dec 21 13:26:17 UTC 2011


tag 652808 unreproducible
thanks

Le mardi 20 décembre 2011 à 16:27 +0100, Marcus Comstedt a écrit : 
> #include <stdio.h>
> #include <time.h>
> #include <glib.h>
> 
> int main()
> {
>   GDateTime * gdt  = g_date_time_new_now_local();
>   printf("glib: %s\n", g_date_time_format(gdt, "%R %Z"));
> 
>   char buf[256];
>   time_t now = time(0);
>   struct tm *tm = localtime(&now);
>   strftime(buf, sizeof(buf), "%R %Z", tm);
>   printf("libc: %s\n", buf);
>   
>   return 0;
> }

This program works perfectly fine for me.

-- 
 .''`.      Josselin Mouette
: :' :
`. `'
  `-






More information about the pkg-gnome-maintainers mailing list