Project

General

Profile

Actions

Patch #41313

closed

Fix test/unit/issue_test.rb to use correct IANA timezone name "Asia/Hong_Kong" instead of deprecated "Hongkong"

Added by Soren Stoutner 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

I am working on updating the Debian package of Redmine. As part of that work, I noticed that test/unit/issue_test.rb produces the following failure:

Failure:
IssueTest#test_issue_overdue_should_respect_user_timezone [/<<PKGBUILDDIR>>/test/unit/issue_test.rb:3410]:
Expected false to be truthy.

rails test test/unit/issue_test.rb:3388

The root of this problem is that this test uses the Hongkong, which Debian no longer resolves to Asia/Hong_Kong. The attached patch fixes this problem by using Asia/Hong_Kong directly.


Files

Actions

Also available in: Atom PDF