- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
- [text_view_frame.html] Add some JS driven CSS tricks for iPad
- [text_view_frame.html] move throbber's hiding-call in nested text_view_comments iframe onload signal (so it works with jQuery 1.10.2 and the hiding timing is good)
- [text_view_frame.html][base.html] factorize req_yui.html et req_jquery.html
- [main_tabs][text_tabs][f_client-min.js] rewrite jQuery UI Tabs API calls select in active
- [base.css] CSS fix grey frame appearence for all tabs
- hg remove bgiframe -> not loaded in templates anymore
- hg remove header_custom.html -> the file has been empty since 4 years
- hg remove controls.html -> the file has been empty since 4 years
import time
from django.utils.translation import ugettext as _
#http://docs.python.org/lib/module-time.html
def datetime_to_user_str(dt):
return dt.strftime(str(_("%Y-%m-%d %H:%M")))
#def datetime_to_str(dt):
# return dt.strftime(CLIENT_DATE_FMT['python_output'])
def datetime_to_epoch(dt):
return time.mktime(dt.timetuple())
#def datetime_to_js_date_str(dt):
# print str(1000*mktime(dt.timetuple()))
# return str(1000*mktime(dt.timetuple()))