Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I18n.l displays wrong month (one month later)

I have a strage issue with the I18n.l helper. I've got the following date in a updated_at database field: 2013-04-09 08:17:26

i display this date in my view with <%= l product.updated_at %> and get this the first time i load the page: Dienstag, 09. April 2013, 10:17 Uhr. When i refresh the page it becomes Dienstag, 09. Mai 2013, 10:17 Uhr. As you can see the date is now one moth later. It sticks to that until i restart the server. Then once again it displays correctly one time.

What could be the issue here?

like image 597
Dominik Goltermann Avatar asked Dec 21 '25 15:12

Dominik Goltermann


1 Answers

I finally found it. It was a bug in the Spree version I was using, they were deleting the nil key from the month_names accidentally: https://github.com/spree/spree/pull/2427

like image 198
Dominik Goltermann Avatar answered Dec 23 '25 04:12

Dominik Goltermann



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!