https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292012-11-14T18:59:29ZRedmineRedmine - Defect #12359: Version date field regex validation accepts invalid datehttps://www.redmine.org/issues/12359?journal_id=428132012-11-14T18:59:29ZEtienne Massip
<ul><li><strong>Category</strong> set to <i>Custom fields</i></li></ul><p>Why not try <code>User.current.time_zone.parse(effective_date_before_type_cast)</code>?</p> Redmine - Defect #12359: Version date field regex validation accepts invalid datehttps://www.redmine.org/issues/12359?journal_id=428142012-11-14T19:00:52ZEtienne Massip
<ul><li><strong>Category</strong> changed from <i>Custom fields</i> to <i>Roadmap</i></li></ul> Redmine - Defect #12359: Version date field regex validation accepts invalid datehttps://www.redmine.org/issues/12359?journal_id=428292012-11-15T10:04:37ZRóbert Ágoston
<ul></ul><p>Etienne Massip wrote:</p>
<blockquote>
<p>Why not try <code>User.current.time_zone.parse(effective_date_before_type_cast)</code>?</p>
</blockquote>
<p>I just read that "Redmine only supports YYYY-MM-DD format for entering dates".<br />I read that at <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: strange validation in redmine core (Closed)" href="https://www.redmine.org/issues/10560#note-2">#10560#note-2</a><br />A similar bug was fixed in <a class="changeset" title="Custom date field accepts invalid dates (#9394)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/7779">r7779</a> with the same method.</p> Redmine - Defect #12359: Version date field regex validation accepts invalid datehttps://www.redmine.org/issues/12359?journal_id=428462012-11-15T22:43:31ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li><li><strong>Target version</strong> set to <i>2.1.3</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Fix committed in <a class="changeset" title="Fixed version date validation (#12359)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/10810">r10810</a> with slight changes, thanks.</p> Redmine - Defect #12359: Version date field regex validation accepts invalid datehttps://www.redmine.org/issues/12359?journal_id=428702012-11-17T08:53:00ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul><p>Merged in 2.1-stable.</p>