1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Display wrong value in <input type="date" in RTL

Discussion in 'Resolved Bug Reports' started by Nobita.Kun, Feb 18, 2014.

  1. Nobita.Kun

    Nobita.Kun Well-Known Member

    As title. In direction LTR its display as expected. But in RTL it always display current time. :oops:

    Example: my value: 02-19-2014 but its display 02-18-2014 in RTL :)

    Attached Files:

    Moshe1010 likes this.
  2. Mike

    Mike XenForo Developer Staff Member

    Can I see the template code you're using with this? There is potentially a bug in our code and I'm making some tweaks to handle it, though I want to confirm with your template code.

    In the mean time, you should simply generate the date in PHP without using the XenForo_Locale functions.
  3. Nobita.Kun

    Nobita.Kun Well-Known Member

    <input type="date" name="date" value="{xen:if '{$note.trigger_date}', '{xen:date {$note.trigger_date}, picker}', '{xen:date {$serverTime}, picker}'}" class="textCtrl autoSize" id="ctrl_date" />
    This is code I was used :).
    Yep! I can simply get it via XenForo_Locale ;)
  4. Mike

    Mike XenForo Developer Staff Member

    Right, the fix will sort that then. :)
    Nobita.Kun likes this.

Share This Page