Defect #13888 » fix-13888.diff
app/models/mailer.rb (作業コピー) | ||
---|---|---|
721 | 721 |
hash = [ |
722 | 722 |
"redmine", |
723 | 723 |
"#{object.class.name.demodulize.underscore}-#{object.id}", |
724 |
timestamp.strftime("%Y%m%d%H%M%S") |
|
724 |
timestamp.utc.strftime("%Y%m%d%H%M%S")
|
|
725 | 725 |
] |
726 | 726 |
if rand |
727 | 727 |
hash << Redmine::Utils.random_hex(8) |
test/unit/mailer_test.rb (作業コピー) | ||
---|---|---|
340 | 340 |
end |
341 | 341 |
end |
342 | 342 | |
343 |
def test_timestamp_in_message_id_should_be_utc |
|
344 |
current_zone = Time.zone |
|
345 |
%w(UTC Paris Tokyo).each do |zone| |
|
346 |
Time.zone = zone |
|
347 |
assert_match /redmine.issue-3.20060719190727.[0-9a-f]+@example.net/, Mailer.token_for(Issue.find(3)) |
|
348 |
end |
|
349 |
Time.zone = current_zone |
|
350 |
end |
|
351 | ||
343 | 352 |
test "#issue_add should notify project members" do |
344 | 353 |
issue = Issue.find(1) |
345 | 354 |
assert Mailer.deliver_issue_add(issue) |
- « Previous
- 1
- 2
- Next »