Skip to content

Commit

Permalink
impl #1796
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightczx committed Jul 6, 2024
1 parent a4913e8 commit 364b056
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/Snap.Hutao/Snap.Hutao/Resource/Localization/SH.resx
Original file line number Diff line number Diff line change
Expand Up @@ -3125,6 +3125,9 @@
<data name="WebDailyNoteExpeditionRemainMinutesFormat" xml:space="preserve">
<value>{0} 分</value>
</data>
<data name="WebDailyNoteExpeditionRemainTime" xml:space="preserve">
<value>{0} 时 {1} 分</value>
</data>
<data name="WebDailyNoteExtraTaskRewardNotAllowed" xml:space="preserve">
<value>今日完成委托数量不足</value>
</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ public string RemainedTimeFormatted
}

TimeSpan ts = new(0, 0, RemainedTime);
return ts.Hours > 0
? SH.FormatWebDailyNoteExpeditionRemainHoursFormat(ts.Hours)
: SH.FormatWebDailyNoteExpeditionRemainMinutesFormat(ts.Minutes);
return SH.FormatWebDailyNoteExpeditionRemainTime(ts.Hours, ts.Minutes);
}
}
}

0 comments on commit 364b056

Please sign in to comment.