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
What are the expected results?
The order of argument put into set/2 matters since Timex.set(time, day: date.day, month: date.month, year: date.year) will not always produce the same result as Timex.set(time, month: date.month, year: date.year, day: date.day)
Technically the user could/should have used the date option but this may not always be obvious.
I kinda propose to either pre parse the options to convert month, year & day options into a single date option or sort the options list by importance such that year is being set first, month second and day third (in our example).
What are you thinking?
Would happily work on this! :)
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Description of issue
The order of argument put into
set/2
matters sinceTimex.set(time, day: date.day, month: date.month, year: date.year)
will not always produce the same result asTimex.set(time, month: date.month, year: date.year, day: date.day)
Technically the user could/should have used the
date
option but this may not always be obvious.I kinda propose to either pre parse the options to convert
month
,year
&day
options into a singledate
option or sort the options list by importance such that year is being set first, month second and day third (in our example).What are you thinking?
Would happily work on this! :)
The text was updated successfully, but these errors were encountered: