Author: jreidinger Date: Thu Jul 2 14:13:09 2009 New Revision: 57846 URL: http://svn.opensuse.org/viewcvs/yast?rev=57846&view=rev Log: add manual time setter to YaPI Modified: trunk/country/package/yast2-country.changes trunk/country/timezone/src/YaPI/TIME.pm Modified: trunk/country/package/yast2-country.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/country/package/yast2-country.changes?rev=57846&r1=57845&r2=57846&view=diff ============================================================================== --- trunk/country/package/yast2-country.changes (original) +++ trunk/country/package/yast2-country.changes Thu Jul 2 14:13:09 2009 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Mon Jun 29 08:45:58 CEST 2009 - jreidinger@suse.cz + +- really update version + +------------------------------------------------------------------- Tue Jun 23 16:14:50 CEST 2009 - jreidinger@suse.cz - update YaPI Modified: trunk/country/timezone/src/YaPI/TIME.pm URL: http://svn.opensuse.org/viewcvs/yast/trunk/country/timezone/src/YaPI/TIME.pm?rev=57846&r1=57845&r2=57846&view=diff ============================================================================== --- trunk/country/timezone/src/YaPI/TIME.pm (original) +++ trunk/country/timezone/src/YaPI/TIME.pm Thu Jul 2 14:13:09 2009 @@ -63,6 +63,14 @@ if (defined $args->{"timezone"}){ Timezone->Set($args->{"timezone"},YaST::YCP::Boolean(1)); } + if (defined $args->{"currenttime"}){ +#format yyyy-dd-mm - hh:mm:ss + if ($args->{"currenttime"} =~ m/(\d+)-(\d+)-(\d+) - (\d+):(\d+):(\d+)/) + { + Timezone->SetTime(int($1),int($3),int($2),int($4),int($5),int($6)); + } + } + Timezone->Save(); return 1; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org