1

一些补丁只是提供

317c317
<                global $wgScript, $wgUser, $wgParser, $wgTitle, $wgOut;
---
>                global $wgScript, $wgUser, $wgParser, $wgTitle, $wgOut, $wgLocalTZoffset;
370c370,371
<                               $output .= "<div class='news-bulletin-time'>" . date("M j, Y g:i a",strtotime($row->cl_timestamp)) . "</div>";
---
>                               //Patched to display correct time in current time zone
>                               $output .= "<div class='news-bulletin-time'>" . date("M j, Y g:i a",strtotime($row->cl_timestamp) + ($wgLocalTZoffset * 60)) . "</div>";

我如何申请诸如补丁?

4

1 回答 1

2

只需使用该patch工具和您的文件。

patch original.txt diffs.patch

这成立,如果diffs.patch是一个diff没有额外参数(你的例子似乎是)生成的补丁。例如,如果您有一个统一的差异 ( diff -u),您必须patch通过传递适当的标志(-u用于统一差异)来说明这一点。

于 2012-04-12T12:03:51.690 回答