My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2459: fullTimeText vs. timeText displayed format
  Back to list
Status:  Done
Owner:  ----
Closed:  Mar 2015


Sign in to add a comment
 
Reported by tayllanb...@corollarium.com, Mar 12, 2015
On the file 'common/TimeGrid.events.js', function 'fgSegHtml' it's defined that the time format displayed on each time cell on the week view is the variable 'timeText', which (depending on your locale) displays something like '03:00 - 04:00', while in the '.fc-time' there's an attribute called 'data-full' that holds the variable 'fullTextTime' in the format '03:00am - 04:00am' (again, depending on your local).
In a general case I think it'd be better if the default displayed time would be the one on 'fullTextTime', since it's clearer for the user what time it is (am or pm).
I could, and tried, to go around this using my own js, which simply takes the 'data-full's value and puts it inside the displayed 'span'. The problem is that, apparently, this only works for the time cells that occupy more than a single cell, otherwise, there's some fullcalendar's css using ':before' and ':after' that still displays the 'timeText' time format.
Mar 13, 2015
#1 tayllanb...@corollarium.com
Never mind, my fault. I didn't see I was suppose to use the 'lang-all.js' (http://fullcalendar.io/docs/text/lang/), so that's why I wasn't seeing the time duly formatted.
Mar 16, 2015
Project Member #2 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Done
Sign in to add a comment

Powered by Google Project Hosting