Skip to content

Commit 70d6a2d

Browse files
Pesastenzek
authored andcommitted
Achievements: Revert back to long date format for unlock/submit time
1 parent 71591e8 commit 70d6a2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/achievements.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3008,7 +3008,7 @@ void Achievements::DrawAchievement(const rc_client_achievement_t* cheevo)
30083008
if (is_unlocked)
30093009
{
30103010
const std::string date =
3011-
Host::FormatNumber(Host::NumberFormatType::ShortDateTime, static_cast<s64>(cheevo->unlock_time));
3011+
Host::FormatNumber(Host::NumberFormatType::LongDateTime, static_cast<s64>(cheevo->unlock_time));
30123012
text.format(TRANSLATE_FS("Achievements", "Unlocked: {} | {:.1f}% of players have this achievement"), date,
30133013
rarity_to_display);
30143014

@@ -3498,7 +3498,7 @@ void Achievements::DrawLeaderboardEntry(const rc_client_leaderboard_entry_t& ent
34983498
const ImRect time_bb(ImVec2(text_start_x, bb.Min.y), ImVec2(bb.Max.x, midpoint));
34993499

35003500
const std::string submit_time =
3501-
Host::FormatNumber(Host::NumberFormatType::ShortDateTime, static_cast<s64>(entry.submitted));
3501+
Host::FormatNumber(Host::NumberFormatType::LongDateTime, static_cast<s64>(entry.submitted));
35023502
RenderShadowedTextClipped(UIStyle.Font, UIStyle.LargeFontSize, UIStyle.BoldFontWeight, time_bb.Min, time_bb.Max,
35033503
text_color, submit_time, nullptr, ImVec2(0.0f, 0.0f), 0.0f, &time_bb);
35043504

0 commit comments

Comments
 (0)