~ubuntu-branches/ubuntu/vivid/gitg/vivid

« back to all changes in this revision

Viewing changes to gitg/gitg-utils.c

  • Committer: Bazaar Package Importer
  • Author(s): Jonny Lamb
  • Date: 2009-04-09 00:44:07 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090409004407-xl4cwh7yk5tfbiq4
Tags: 0.0.2-1
* New upstream release. (Closes: #522919)
  + Timestamp to date string conversion is now valid UTF-8. (Closes: #518705)
  + Fixes to async task cancellation. (Closes: #520922)
* debian/control: Changed Section to vcs.
* debian/patches/:
  + 0001-Change-Categories-to-Development-RevisionControl.patch: Added
    to change Categories to Development;RevisionControl. (Closes: 520887)
  + 0001-Terminate-gtk_text_buffer_create_tag-s-arguments-wit.patch: Removed
    as applied upstream.
  + 0002-Initial-patch-to-show-tags-referenced-from-tag-objec.patch: Added
    to show tags referenced from tag objects. (Closes: #521062)
* debian/watch: Added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
493
493
        g_free(path);
494
494
        return b;
495
495
}
 
496
 
 
497
gchar *
 
498
gitg_utils_timestamp_to_str(guint64 timestamp)
 
499
{
 
500
        time_t t = timestamp;
 
501
 
 
502
        struct tm *tms = localtime(&t);
 
503
        gchar buf[255];
 
504
        
 
505
        strftime(buf, 254, "%c", tms);
 
506
        return gitg_utils_convert_utf8(buf, -1);
 
507
}