sugi / jquery-gcal-flow

jQuery Google Calendar Flow plugin
62 stars 28 forks source link

Month Name #36

Closed craigtommola closed 9 years ago

craigtommola commented 9 years ago

Is there a way to format the Month as abbreviated name rather than numerically?

Ex: Nov rather than 11 for November

UPDATE: I have installed globalize and tested that it's working. I now realize the issue is that I am using daterange and it doesn't seem to be globalize formatted.

SECOND UPDATE: The daterange can be formatted with globalizefmt* however, then you cannot use daterange_formatter, which is problematic because I am styling the date and month differently. Thoughts?

craigtommola commented 9 years ago

I was able to resolve this. I did the following in the script:

globalize_fmt_datetime: "<p>' 'dd' '</p>' '<p>' 'MMM' '</p>"

Then in the stylesheet, I used the child selector to get the month and date separately:

.gcf-item-start-date p:first-child { .gcf-item-start-date p:nth-child(2) {

It worked.