From 076e7cc6883cfa9a19aa77c2b4a9d413dff14168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sat, 18 Nov 2023 10:01:06 +0800 Subject: [PATCH] Fix bug. --- fgu_sync.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fgu_sync.rake b/fgu_sync.rake index c2981ac..19bb346 100644 --- a/fgu_sync.rake +++ b/fgu_sync.rake @@ -16,7 +16,7 @@ namespace :fgu_sync do end end def parse_date(d) - (d.present? ? (Date.parse(d) rescue Date.today) : nil) + (d.present? ? (Date.parse(d) rescue nil) : nil) end def camelize(str) str.split('_').map{|v| v.capitalize}.join(' ')