Comments (8)
Have set config.use_plugin_parser to true ?
On 07/12/2011, at 1:27 AM, [email protected] wrote:
i'm trying set a new date format..
config.parser,add_formats(:date, 'dd/mm/yyyy')
i'm still get error of invalid date.
Reply to this email directly or view it on GitHub:
#60
from validates_timeliness.
yes
2011/12/6 Adam Meehan <
[email protected]
Have set config.use_plugin_parser to true ?
On 07/12/2011, at 1:27 AM, [email protected] wrote:
i'm trying set a new date format..
config.parser,add_formats(:date, 'dd/mm/yyyy')
i'm still get error of invalid date.
Reply to this email directly or view it on GitHub:
#60
Reply to this email directly or view it on GitHub:
from validates_timeliness.
so.. it's a bug or i'm doing something wrong?
from validates_timeliness.
my code in validates_timeliness.rb
config.use_plugin_parser = true
config.parser.add_formats(:date, 'dd/mm/yyyy')
from validates_timeliness.
I tried specifying the format in the class, but still with the same error
:format => 'dd/mm/yyyy'
from validates_timeliness.
sorry, when i specify the format, the validates works, but on create, it's trying get the value on us format and creating a record with a nil value..
my date: '30/12/2011', it's save a nil value in date field, because the controller is trying get a us format date('m/d/yy').. i guess
when i create with this date: '12/12/2011', it works fine.
I do not know if I'm right, but thanks anyway
from validates_timeliness.
Damn. my reply from a few days ago didn't come through. You need
config.parser.use_euro_formats
because the format you are using is ambiguous with the US format.
from validates_timeliness.
thx adzap !
from validates_timeliness.
Related Issues (20)
- No configuration required per thread (compatibility with timeliness 0.4.0+ HOT 7
- No support for midnight with :time type HOT 1
- NoMethodError: undefined method `deduplicate' with ActiveRecord 6.1 HOT 3
- Doesn't work with Ruby 3.0 / Rails 6.1 (PR attached) HOT 5
- Gem in 5.0.0 version not execute "timeliness" validations in ActiveRecord models HOT 12
- Update `CHANGELOG.rdoc` for v5.0.0 HOT 1
- Check time_zone_aware_types HOT 3
- Plans to release a official 6.x version HOT 3
- `add_error` call with wrong number of arguments HOT 2
- Issue on engine test load HOT 2
- ArgumentError: wrong number of arguments (given 3, expected 1..2) on records.error.add HOT 8
- Locale for Vietnamese HOT 2
- Rails 7 Deprecation Warnings HOT 6
- Rails 7 dependency - activemodel HOT 4
- Please support Rails 7 then cut a new version HOT 1
- Additional maintainer needed HOT 2
- Support for Rails 7 HOT 4
- Is there any way that I can make sure that ranges are exclusive?
- Handle when the passed value is not a Date value. when it's a Numeric
- Comparison to ComparisonValidator HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from validates_timeliness.