summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 472af3b..de050aa 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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);