]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1563312 - Needinfo links at top of bug goes to #c0 rather than relevant comment
authorKohei Yoshino <kohei.yoshino@gmail.com>
Fri, 5 Jul 2019 17:08:58 +0000 (13:08 -0400)
committerGitHub <noreply@github.com>
Fri, 5 Jul 2019 17:08:58 +0000 (13:08 -0400)
Bugzilla/DB/Mysql.pm
Bugzilla/DB/Oracle.pm
Bugzilla/DB/Pg.pm
Bugzilla/DB/Sqlite.pm
Bugzilla/Flag.pm
extensions/BMO/lib/Reports/UserActivity.pm
extensions/InlineHistory/Extension.pm
request.cgi

index cde571dcaf97de201cc0c5ad02b7c96c88aa24ae..67077d494bff33b0825a2271aea826c82f40f9e8 100644 (file)
@@ -205,7 +205,7 @@ sub sql_to_days {
 sub sql_date_format {
   my ($self, $date, $format) = @_;
 
-  $format = "%Y.%m.%d %H:%i:%s" if !$format;
+  $format = "%Y-%m-%d %H:%i:%s" if !$format;
 
   return "DATE_FORMAT($date, " . $self->quote($format) . ")";
 }
index db8932c9e4f169bcc75159f512c932cdb5f30c20..524c7ed683016880b0abfb2306316977249aa149 100644 (file)
@@ -177,7 +177,7 @@ sub sql_fulltext_search {
 sub sql_date_format {
   my ($self, $date, $format) = @_;
 
-  $format = "%Y.%m.%d %H:%i:%s" if !$format;
+  $format = "%Y-%m-%d %H:%i:%s" if !$format;
 
   $format =~ s/\%Y/YYYY/g;
   $format =~ s/\%y/YY/g;
index d1bb0f798b0e0e7620b86a48a9ceb6fee5fb17d1..695ea46409199c940dc9b7b93183237e59c3b799 100644 (file)
@@ -135,7 +135,7 @@ sub sql_to_days {
 sub sql_date_format {
   my ($self, $date, $format) = @_;
 
-  $format = "%Y.%m.%d %H:%i:%s" if !$format;
+  $format = "%Y-%m-%d %H:%i:%s" if !$format;
 
   $format =~ s/\%Y/YYYY/g;
   $format =~ s/\%y/YY/g;
index 7b07a71ab1840752de93dbb2d4bd977039f8f4a5..d3aec60f3414a32596692702fc50aec618d00041 100644 (file)
@@ -223,7 +223,7 @@ sub sql_to_days {
 
 sub sql_date_format {
   my ($self, $date, $format) = @_;
-  $format = "%Y.%m.%d %H:%M:%S" if !$format;
+  $format = "%Y-%m-%d %H:%M:%S" if !$format;
   $format =~ s/\%i/\%M/g;
   return "STRFTIME(" . $self->quote($format) . ", $date)";
 }
index 1291c4ba4cc0ccd3723908615a33946314773e29..b874570244dcdf9bdd80247f06af4a4d2d9695ce 100644 (file)
@@ -80,9 +80,9 @@ sub DB_COLUMNS {
     requestee_id
     setter_id
     status),
-    $dbh->sql_date_format('creation_date', '%Y.%m.%d %H:%i:%s')
+    $dbh->sql_date_format('creation_date', '%Y-%m-%d %H:%i:%s')
     . ' AS creation_date',
-    $dbh->sql_date_format('modification_date', '%Y.%m.%d %H:%i:%s')
+    $dbh->sql_date_format('modification_date', '%Y-%m-%d %H:%i:%s')
     . ' AS modification_date';
 }
 
@@ -479,7 +479,7 @@ sub update {
     $dbh->do('UPDATE flags SET modification_date = ? WHERE id = ?',
       undef, ($timestamp, $self->id));
     $self->{'modification_date'}
-      = format_time($timestamp, '%Y.%m.%d %T', Bugzilla->local_timezone);
+      = format_time($timestamp, '%Y-%m-%d %T', Bugzilla->local_timezone);
     Bugzilla->memcached->clear({table => 'flags', id => $self->id});
   }
 
@@ -530,8 +530,8 @@ sub update_flags {
       # This is a new flag.
       my $flag = $class->create($new_flag, $timestamp);
       $new_flag->{id}                = $flag->id;
-      $new_flag->{creation_date}     = format_time($timestamp, '%Y.%m.%d %H:%i:%s');
-      $new_flag->{modification_date} = format_time($timestamp, '%Y.%m.%d %H:%i:%s');
+      $new_flag->{creation_date}     = format_time($timestamp, '%Y-%m-%d %H:%i:%s');
+      $new_flag->{modification_date} = format_time($timestamp, '%Y-%m-%d %H:%i:%s');
       $class->notify($new_flag, undef, $self, $timestamp);
     }
     else {
index ece69e930ca0a40ac2f2fb5fb0e15d8937095d87..ddf7cfca37a59c505ebc91dfa9d388cc240da0aa 100644 (file)
@@ -114,7 +114,7 @@ sub report {
                    bugs_activity.bug_id,
                    bugs_activity.attach_id,
                    "
-      . $dbh->sql_date_format('bugs_activity.bug_when', '%Y.%m.%d %H:%i:%s')
+      . $dbh->sql_date_format('bugs_activity.bug_when', '%Y-%m-%d %H:%i:%s')
       . " AS ts,
                    bugs_activity.removed,
                    bugs_activity.added,
@@ -140,7 +140,7 @@ sub report {
                    NULL as attach_id,
                    "
       . $dbh->sql_date_format('longdescs_tags_activity.bug_when',
-      '%Y.%m.%d %H:%i:%s')
+      '%Y-%m-%d %H:%i:%s')
       . " AS bug_when,
                    longdescs_tags_activity.removed,
                    longdescs_tags_activity.added,
@@ -163,7 +163,7 @@ sub report {
                    bugs.bug_id,
                    NULL AS attach_id,
                    "
-      . $dbh->sql_date_format('bugs.creation_ts', '%Y.%m.%d %H:%i:%s') . " AS ts,
+      . $dbh->sql_date_format('bugs.creation_ts', '%Y-%m-%d %H:%i:%s') . " AS ts,
                    '(new bug)' AS removed,
                    bugs.short_desc AS added,
                    profiles.login_name,
@@ -182,7 +182,7 @@ sub report {
                    'longdesc' AS name,
                    longdescs.bug_id,
                    NULL AS attach_id,
-                   DATE_FORMAT(longdescs.bug_when, '%Y.%m.%d %H:%i:%s') AS ts,
+                   DATE_FORMAT(longdescs.bug_when, '%Y-%m-%d %H:%i:%s') AS ts,
                    '' AS removed,
                    '' AS added,
                    profiles.login_name,
@@ -203,7 +203,7 @@ sub report {
                    attachments.bug_id,
                    attachments.attach_id,
                    "
-      . $dbh->sql_date_format('attachments.creation_ts', '%Y.%m.%d %H:%i:%s')
+      . $dbh->sql_date_format('attachments.creation_ts', '%Y-%m-%d %H:%i:%s')
       . " AS ts,
                    '(new attachment)' AS removed,
                    attachments.description AS added,
index 779ccaf17f475eee287b2f15293aa63ee2f54357..29caf0cf913ab62dd8314e1b2cbe15b184567e83 100644 (file)
@@ -208,7 +208,7 @@ sub _add_duplicates {
   my $dbh = Bugzilla->dbh;
   my $sth = $dbh->prepare("
         SELECT profiles.login_name, "
-      . $dbh->sql_date_format('bug_when', '%Y.%m.%d %H:%i:%s') . ",
+      . $dbh->sql_date_format('bug_when', '%Y-%m-%d %H:%i:%s') . ",
                extra_data
           FROM longdescs
                INNER JOIN profiles ON profiles.userid = longdescs.who
index 25244b157f3e26a79aa995b296125389f9320d5d..a06e63ed83c36b086b8cbc9d7850f4ac0e94c82b 100755 (executable)
@@ -104,7 +104,7 @@ sub queue {
                 flags.attach_id, attachments.description,
                 requesters.realname, requesters.login_name,
                 requestees.realname, requestees.login_name, COUNT(privs.group_id),
-    " . $dbh->sql_date_format('flags.modification_date', '%Y.%m.%d %H:%i') . ",
+    " . $dbh->sql_date_format('flags.modification_date', '%Y-%m-%d %H:%i') . ",
                 attachments.mimetype,
                 attachments.ispatch,
                 bugs.bug_status,