patch by ghendricks r=LpSolit a=LpSolit
hour => $time[2],
minute => $time[1],
second => $time[0],
- # Use the timezone specified by the server.
- time_zone => Bugzilla->local_timezone});
+ # If importing, use the specified timezone, otherwise
+ # use the timezone specified by the server.
+ time_zone => Bugzilla->local_timezone->offset_as_string($time[6])
+ || Bugzilla->local_timezone});
# Now display the date using the given timezone,
# or the user's timezone if none is given.
use MIME::Base64;
use MIME::Parser;
-use Date::Format;
use Getopt::Long;
use Pod::Usage;
use XML::Twig;
# Process time fields
if ( $params->{"timetrackinggroup"} ) {
- my $date = format_time( $bug_fields{'deadline'}, "%Y-%m-%d" )
- || undef;
+ my $date = validate_date( $bug_fields{'deadline'} ) ? $bug_fields{'deadline'} : undef;
push( @values, $date );
push( @query, "deadline" );
if ( defined $bug_fields{'estimated_time'} ) {