Hello community, here is the log from the commit of package snapper for openSUSE:Factory checked in at 2014-06-01 18:55:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/snapper (Old) and /work/SRC/openSUSE:Factory/.snapper.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "snapper" Changes: -------- --- /work/SRC/openSUSE:Factory/snapper/snapper.changes 2014-05-23 15:00:41.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.snapper.new/snapper.changes 2014-06-01 18:55:58.000000000 +0200 @@ -1,0 +2,5 @@ +Tue May 27 11:36:21 CEST 2014 - aschnell@suse.de + +- allow to display dates and times in UTC and ISO format + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ snapper-0.2.2.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snapper-0.2.2/client/snapper.cc new/snapper-0.2.2/client/snapper.cc --- old/snapper-0.2.2/client/snapper.cc 2014-04-17 15:27:38.000000000 +0200 +++ new/snapper-0.2.2/client/snapper.cc 2014-05-27 13:00:30.000000000 +0200 @@ -79,6 +79,8 @@ bool quiet = false; bool verbose = false; +bool utc = false; +bool iso = false; string config_name = "root"; bool no_dbus = false; @@ -440,7 +442,7 @@ row.add(toString(it1->getType())); row.add(decString(it1->getNum())); row.add(it1->getType() == POST ? decString(it1->getPreNum()) : ""); - row.add(it1->isCurrent() ? "" : datetime(it1->getDate(), false, false)); + row.add(it1->isCurrent() ? "" : datetime(it1->getDate(), utc, iso)); row.add(username(it1->getUid())); row.add(it1->getCleanup()); row.add(it1->getDescription()); @@ -457,7 +459,7 @@ row.add(toString(it1->getType())); row.add(decString(it1->getNum())); row.add(it1->getType() == POST ? decString(it1->getPreNum()) : ""); - row.add(it1->isCurrent() ? "" : datetime(it1->getDate(), false, false)); + row.add(it1->isCurrent() ? "" : datetime(it1->getDate(), utc, iso)); row.add(username(it1->getUid())); row.add(it1->getCleanup()); row.add(it1->getDescription()); @@ -488,7 +490,7 @@ TableRow row; row.add(decString(it1->getNum())); - row.add(it1->isCurrent() ? "" : datetime(it1->getDate(), false, false)); + row.add(it1->isCurrent() ? "" : datetime(it1->getDate(), utc, iso)); row.add(username(it1->getUid())); row.add(it1->getDescription()); row.add(show_userdata(it1->getUserdata())); @@ -505,7 +507,7 @@ TableRow row; row.add(decString(it1->getNum())); - row.add(it1->isCurrent() ? "" : datetime(it1->getDate(), false, false)); + row.add(it1->isCurrent() ? "" : datetime(it1->getDate(), utc, iso)); row.add(username(it1->getUid())); row.add(it1->getDescription()); row.add(show_userdata(it1->getUserdata())); @@ -541,8 +543,8 @@ TableRow row; row.add(decString(it1->getNum())); row.add(decString(it2->getNum())); - row.add(datetime(it1->getDate(), false, false)); - row.add(datetime(it2->getDate(), false, false)); + row.add(datetime(it1->getDate(), utc, iso)); + row.add(datetime(it2->getDate(), utc, iso)); row.add(it1->getDescription()); row.add(show_userdata(it1->getUserdata())); table.add(row); @@ -563,8 +565,8 @@ TableRow row; row.add(decString(it1->getNum())); row.add(decString(it2->getNum())); - row.add(datetime(it1->getDate(), false, false)); - row.add(datetime(it2->getDate(), false, false)); + row.add(datetime(it1->getDate(), utc, iso)); + row.add(datetime(it2->getDate(), utc, iso)); row.add(it1->getDescription()); row.add(show_userdata(it1->getUserdata())); table.add(row); @@ -1461,6 +1463,8 @@ cout << _(" Global options:") << endl << _("\t--quiet, -q\t\t\tSuppress normal output.") << endl << _("\t--verbose, -v\t\t\tIncrease verbosity.") << endl + << _("\t--utc\t\t\t\tDisplay dates and times in UTC.") << endl + << _("\t--iso\t\t\t\tDisplay dates and times in ISO format.") << endl << _("\t--table-style, -t <style>\tTable style (integer).") << endl << _("\t--config, -c <name>\t\tSet name of config to use.") << endl << _("\t--no-dbus\t\t\tOperate without DBus.") << endl @@ -1508,6 +1512,8 @@ const struct option options[] = { { "quiet", no_argument, 0, 'q' }, { "verbose", no_argument, 0, 'v' }, + { "utc", no_argument, 0, 0 }, + { "iso", no_argument, 0, 0 }, { "table-style", required_argument, 0, 't' }, { "config", required_argument, 0, 'c' }, { "no-dbus", no_argument, 0, 0 }, @@ -1528,6 +1534,12 @@ if ((opt = opts.find("verbose")) != opts.end()) verbose = true; + if ((opt = opts.find("utc")) != opts.end()) + utc = true; + + if ((opt = opts.find("iso")) != opts.end()) + iso = true; + if ((opt = opts.find("table-style")) != opts.end()) { unsigned int s; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snapper-0.2.2/doc/snapper.xml.in new/snapper-0.2.2/doc/snapper.xml.in --- old/snapper-0.2.2/doc/snapper.xml.in 2014-04-17 15:27:38.000000000 +0200 +++ new/snapper-0.2.2/doc/snapper.xml.in 2014-05-27 13:00:30.000000000 +0200 @@ -173,6 +173,18 @@ </listitem> </varlistentry> <varlistentry> + <term><option>--utc</option></term> + <listitem> + <para>Display dates and times in UTC.</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>--iso</option></term> + <listitem> + <para>Display dates and times in ISO format.</para> + </listitem> + </varlistentry> + <varlistentry> <term><option>-t, --table-style</option></term> <listitem> <para>Specifies table style. Table style is identified by an integer number.</para> -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org