Fix usage of GDateTime functionality which is only in GLIB 2.26 and newer.

Introduced in SHA:450d8665d01939454c094692b4843d5dfea2b3be