linuxmint / cinnamon-desktop

The cinnamon-desktop library (and common settings schemas for the cinnamon desktop)
GNU General Public License v2.0
188 stars 63 forks source link

Stop using deprecated GTimeVal/g_get_current_time #193

Closed ItzSwirlz closed 3 years ago

ItzSwirlz commented 3 years ago

It is Y2038 unsafe, GDateTime and g_get_real_time should be used.

Ref: https://developer.gnome.org/glib/stable/glib-GDateTime.html


Did it myself for once :D

mtwebster commented 3 years ago

Please test more.

ItzSwirlz commented 3 years ago

Will do then if it's better I can test two different computers since it's available.

You may be wondering what the hell is going on with the cash crap and that's because compiler complains so I didn't want to introduce something annoying