mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Merge branch 'varunrmallya/issue107' into 'master'
sysprof:fix UTC recording time to local Closes #107 See merge request GNOME/sysprof!117
This commit is contained in:
@ -2475,7 +2475,10 @@ sysprof_document_dup_title (SysprofDocument *self)
|
||||
return g_strdup (self->title);
|
||||
|
||||
if ((date_time = g_date_time_new_from_iso8601 (self->header.capture_time, NULL)))
|
||||
return g_date_time_format (date_time, _("Recording at %X %x"));
|
||||
{
|
||||
g_autoptr(GDateTime) local_date_time = g_date_time_to_local(date_time);
|
||||
return g_date_time_format (local_date_time, _("Recording at %X %x"));
|
||||
}
|
||||
|
||||
return g_strdup_printf (_("Recording at %s"), self->header.capture_time);
|
||||
}
|
||||
@ -2491,7 +2494,10 @@ sysprof_document_dup_subtitle (SysprofDocument *self)
|
||||
return NULL;
|
||||
|
||||
if ((date_time = g_date_time_new_from_iso8601 (self->header.capture_time, NULL)))
|
||||
return g_date_time_format (date_time, _("Recording at %X %x"));
|
||||
{
|
||||
g_autoptr(GDateTime) local_date_time = g_date_time_to_local(date_time);
|
||||
return g_date_time_format (local_date_time, _("Recording at %X %x"));
|
||||
}
|
||||
|
||||
return g_strdup_printf (_("Recording at %s"), self->header.capture_time);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user