一些补丁仅作为
提供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>";
如何申请补丁?
答案 0 :(得分:2)
只需使用patch
工具和您的文件即可。
patch original.txt diffs.patch
如果diffs.patch
是由diff
生成的补丁而没有额外的参数(您的示例似乎是这样),那么这是成立的。例如,如果您有一个统一的差异(diff -u
),则必须通过传递适当的标志(patch
来统一差异)来告诉-u
。