<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>SmartList due date parser doesn&#039;t always honor abbreviated date format preference</title> 
  <pubDate>Thu, 09 Apr 2026 14:29:33 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/14749</link> 
  <atom:link rel="self" type="application/rss+xml" title="SmartList due date parser doesn&#039;t always honor abbreviated date format preference" href="https://bugs.horde.org/ticket/14749/rss" /> 
  <description>SmartList due date parser doesn&#039;t always honor abbreviated date format preference</description> 
 
   
   
  <item> 
   <title>Hi everyone.

When creating a new SmartList in Nag, the du</title> 
   <description>Hi everyone.

When creating a new SmartList in Nag, the due date is not parsed correctly or at least in a consistent way. My locale is &quot;America/Sao_Paulo&quot; and the abbreviated date format preference is &quot;d-m-Y&quot; ($_prefs[&#039;date_format_mini&#039;][&#039;value&#039;] = &#039;%d/%m/%Y&#039;;)

The thing seems very messy: if the user set the due date as &quot;01/12/17&quot;, the date is parsed as:
Horde_Date Object (
    [_year:protected] =&gt; 2017
    [_month:protected] =&gt; 1
    [_mday:protected] =&gt; 12
    [_hour:protected] =&gt; 12
    [_min:protected] =&gt; 0
    [_sec:protected] =&gt; 0
    [_timezone:protected] =&gt; America/Sao_Paulo
    [_defaultFormat:protected] =&gt; Y-m-d H:i:s
    [_formatCache:protected] =&gt; Array()
)
This isn&#039;t correct if you consider the &quot;date_format_mini&quot; preference.

Now, when trying to set the due date as &quot;13/12/17&quot;, the date is parsed as:
Horde_Date Object
(
    [_year:protected] =&gt; 2017
    [_month:protected] =&gt; 12
    [_mday:protected] =&gt; 13
    [_hour:protected] =&gt; 12
    [_min:protected] =&gt; 0
    [_sec:protected] =&gt; 0
    [_timezone:protected] =&gt; America/Sao_Paulo
    [_defaultFormat:protected] =&gt; Y-m-d H:i:s
    [_formatCache:protected] =&gt; Array()
)

which is now correct according to the &quot;date_format_mini&quot; preference.

How can I explain to my users that if the day of month is smaller than 12 they should set date as &quot;Y-m-d&quot;, but if it is not they should use &#039;Y-m-d&#039;? Even to me it doesn&#039;t make any sense.

I will be glad to provide any additional information in order to solve this.

Thanks in advance.</description> 
   <pubDate>Wed, 06 Dec 2017 17:17:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14749#t92617</link> 
  </item> 
   
  <item> 
   <title>Without looking at the code, but are you sure that the mini </title> 
   <description>Without looking at the code, but are you sure that the mini format is used here, and not the general date format preference?</description> 
   <pubDate>Mon, 22 Jan 2018 16:41:22 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14749#t92687</link> 
  </item> 
   
  <item> 
   <title>&gt; Without looking at the code, but are you sure that the min</title> 
   <description>&gt; Without looking at the code, but are you sure that the mini format is 
&gt; used here, and not the general date format preference?

I don&#039;t really know. I may even misunderstood your consideration, but I think that &quot;due date&quot; fields do validate dates using flexible rules, allowing users to use not only dates (in some format I can&#039;t say) but words like &quot;today&quot; and &quot;tomorrow&quot; too.

A little description is shown below the fields: &quot;E.g., Is due within 2 days of today&quot;

Anyway, notice that even if the mini date format preference is not being used here, the behavior is not consistent, which may confuse users.

Regards,
Leonardo Lopes</description> 
   <pubDate>Wed, 24 Jan 2018 14:10:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14749#t92708</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
