diff options
author | DriverXX <thegio.f@gmail.com> | 2016-03-14 22:00:59 +0100 |
---|---|---|
committer | DriverXX <thegio.f@gmail.com> | 2016-03-14 22:00:59 +0100 |
commit | d24beddcdc9c4ec367dcaedb52e8e4dc17db636d (patch) | |
tree | 088fc679cc284bc5a0cbfbeb59920761885fa353 /src/util.c | |
parent | bb5d10baf2d70538f149735c1e12b335efd12852 (diff) |
Fix origin in props
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -483,6 +483,8 @@ char *gtr_localtime2(char *buf, time_t time, size_t buflen) gchar *epoch_to_string(gint64 epoch) { + if(epoch == 0) + return g_strdup(_("N/A")); GDateTime *dt = g_date_time_new_from_unix_local(epoch); gchar *timestring = g_date_time_format(dt, "%F %H:%M:%S"); g_date_time_unref(dt); |