trsvax / tapestry-bootstrap

Tapestry module for Twitter Bootstrap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

date field doesn't respect format string

twinforces opened this issue · comments

jquery version always writes it at d/m/y.

This turns out to be an issue with tapestry-jQuery datefield because it initializes it for local en-GB, i.e. english-Great Britain. It's hard to track down, because the plain jQuery/datefield defaults to US format.

Work around is to add this:

format="MM/dd/yyyy" t:mixins="jquery/CustomDatepicker" t:params="literal: { dateFormat: 'mm/dd/yy' }"