Skip to content

Commit 56e44ba

Browse files
committed
style: 日付表示を自然な日本語に改善
現在年の表示を「2025年08月08日時点」から「2025年8月8日時点」に変更。 日本語として自然な表記(ゼロパディングなし)を採用。
1 parent b2af6f2 commit 56e44ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/dojos_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def index
6969

7070
# 表示用の日付テキスト
7171
display_date = "#{@selected_year}年末"
72-
display_date = Date.current.strftime('%Y年%m月%d日') if @selected_year == Date.current.year
72+
display_date = Date.current.strftime('%Y年%-m月%-d日') if @selected_year == Date.current.year
7373

7474
flash.now[:inline_info] = "#{display_date}時点のアクティブな道場を表示中<br>(開設数: #{new_dojos_count} / 合計数: #{total_dojos_count})".html_safe
7575
end

0 commit comments

Comments
 (0)