You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears it is currently not possible to GLOBALLY configure the default EndianPrecedence property of Options for new instances of the Chronic.Parser type, like it is available in the ruby clone (please check out this comment).
A public static non readonly field, as created for DefaultAmbiguousTimeRange, should be enough, like so:
// readonly modifier removed to allow re-configuration per AppDomain.publicstaticEndianPrecedenceDefaultEndianPrecedence=EndianPrecedence.Middle;
then, can be used in the constructor like so:
...EndianPrecedence=DefaultEndianPrecedence;
...
This will make the EndianPrecedence configuration globally, (say in Global.asax Application_Start), viz:
Hi,
It appears it is currently not possible to GLOBALLY configure the default EndianPrecedence property of Options for new instances of the Chronic.Parser type, like it is available in the ruby clone (please check out this comment).
A public static non readonly field, as created for DefaultAmbiguousTimeRange, should be enough, like so:
then, can be used in the constructor like so:
This will make the EndianPrecedence configuration globally, (say in Global.asax Application_Start), viz:
Can you please kindly get this fixed, or will a pull request be better?
Thanks, please.
The text was updated successfully, but these errors were encountered: