Skip to content

Commit 1366259

Browse files
committed
fix birthday_tag
1 parent ec0088b commit 1366259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/helpers/application_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def insert_code_menu_items_tag
126126

127127
def birthday_tag
128128
if Time.now.month == 10 && Time.now.day == 28
129-
age = Time.now.year - 2011 + 1
129+
age = Time.now.year - 2011
130130
title = "Ruby China 创立 #{age} 周年纪念日"
131131
html = []
132132
html << "<div style='text-align:center;margin-bottom:20px; line-height:200%;'>"

0 commit comments

Comments
 (0)