g_get_current_time() / win32: UTC instead of local time?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I get the current hour of the day (0-23) like this:

hour_of_the_day=
 my_gtimeval.tv_sec % (3600*24) / 3600


My windows timezone is set to UTC+1 == GMT+1 == CET, however, this is
not respected. What ever I select as the windows timezone the above
formula calculates the same time (I guess UTC).


How can I get the local hour?


Thanks
Felix
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux