Skip to content

Conversation

@brboi
Copy link

@brboi brboi commented May 19, 2021

date utils: create sections ?? + date utils confirm => isValidDateTime + there's a comment about replacing returns false with DateTime.invalid(reason)

@brboi brboi force-pushed the master-wowl-dates-boi branch from 7420f36 to 885a63a Compare May 25, 2021 09:02
@robodoo
Copy link

robodoo commented May 25, 2021

@robodoo
Copy link

robodoo commented May 25, 2021

Sorry, I didn't know about this PR and had to retrieve its information, you may have to re-approve it.

@ged-odoo
Copy link

robodoo r+

@ged-odoo
Copy link

@brboi runbot is red

@brboi brboi force-pushed the master-wowl-dates-boi branch from 885a63a to 7f523a3 Compare May 25, 2021 13:27
@brboi
Copy link
Author

brboi commented May 25, 2021

@brboi runbot is red

Yes...

I had an issue with https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test#using_test_on_a_regex_with_the_global_flag

Solved.

@ged-odoo I also changed the DateTime.prototype.toJSON. See last item in commit message

No other changes since your last review than lines:

  • 14
  • 131

- file is now ordered by clean sections
- `confirm()` helper has been renamed to something more appropriate
- `strftimeToLuxonFormat()` was manually cached. It now uses `memoize()` from `core/utils/functions`
- memoization of `stripAlphaDupes()` because it is prone to get called really often with same arguments.
- no more export `parseSmartDateInput()` as it is never imported elsewhere.
- remove unecessary `setLocale` call in `luxon.DateTime.prototype.toJSON` patch
@brboi brboi force-pushed the master-wowl-dates-boi branch from 7f523a3 to 8543d95 Compare May 26, 2021 10:16
@ged-odoo
Copy link

robodoo r+

robodoo pushed a commit that referenced this pull request May 26, 2021
- file is now ordered by clean sections
- `confirm()` helper has been renamed to something more appropriate
- `strftimeToLuxonFormat()` was manually cached. It now uses `memoize()` from `core/utils/functions`
- memoization of `stripAlphaDupes()` because it is prone to get called really often with same arguments.
- no more export `parseSmartDateInput()` as it is never imported elsewhere.
- remove unecessary `setLocale` call in `luxon.DateTime.prototype.toJSON` patch

closes #867

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
@robodoo robodoo closed this May 26, 2021
@brboi brboi deleted the master-wowl-dates-boi branch May 27, 2021 12:33
aab-odoo pushed a commit that referenced this pull request May 31, 2021
- file is now ordered by clean sections
- `confirm()` helper has been renamed to something more appropriate
- `strftimeToLuxonFormat()` was manually cached. It now uses `memoize()` from `core/utils/functions`
- memoization of `stripAlphaDupes()` because it is prone to get called really often with same arguments.
- no more export `parseSmartDateInput()` as it is never imported elsewhere.
- remove unecessary `setLocale` call in `luxon.DateTime.prototype.toJSON` patch

closes #867

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
aab-odoo pushed a commit that referenced this pull request Jun 7, 2021
- file is now ordered by clean sections
- `confirm()` helper has been renamed to something more appropriate
- `strftimeToLuxonFormat()` was manually cached. It now uses `memoize()` from `core/utils/functions`
- memoization of `stripAlphaDupes()` because it is prone to get called really often with same arguments.
- no more export `parseSmartDateInput()` as it is never imported elsewhere.
- remove unecessary `setLocale` call in `luxon.DateTime.prototype.toJSON` patch

closes #867

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
aab-odoo pushed a commit that referenced this pull request Jun 8, 2021
- file is now ordered by clean sections
- `confirm()` helper has been renamed to something more appropriate
- `strftimeToLuxonFormat()` was manually cached. It now uses `memoize()` from `core/utils/functions`
- memoization of `stripAlphaDupes()` because it is prone to get called really often with same arguments.
- no more export `parseSmartDateInput()` as it is never imported elsewhere.
- remove unecessary `setLocale` call in `luxon.DateTime.prototype.toJSON` patch

closes #867

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
aab-odoo pushed a commit that referenced this pull request Jun 14, 2021
- file is now ordered by clean sections
- `confirm()` helper has been renamed to something more appropriate
- `strftimeToLuxonFormat()` was manually cached. It now uses `memoize()` from `core/utils/functions`
- memoization of `stripAlphaDupes()` because it is prone to get called really often with same arguments.
- no more export `parseSmartDateInput()` as it is never imported elsewhere.
- remove unecessary `setLocale` call in `luxon.DateTime.prototype.toJSON` patch

closes #867

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
aab-odoo pushed a commit that referenced this pull request Jun 15, 2021
- file is now ordered by clean sections
- `confirm()` helper has been renamed to something more appropriate
- `strftimeToLuxonFormat()` was manually cached. It now uses `memoize()` from `core/utils/functions`
- memoization of `stripAlphaDupes()` because it is prone to get called really often with same arguments.
- no more export `parseSmartDateInput()` as it is never imported elsewhere.
- remove unecessary `setLocale` call in `luxon.DateTime.prototype.toJSON` patch

closes #867

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
aab-odoo pushed a commit that referenced this pull request Jun 15, 2021
- file is now ordered by clean sections
- `confirm()` helper has been renamed to something more appropriate
- `strftimeToLuxonFormat()` was manually cached. It now uses `memoize()` from `core/utils/functions`
- memoization of `stripAlphaDupes()` because it is prone to get called really often with same arguments.
- no more export `parseSmartDateInput()` as it is never imported elsewhere.
- remove unecessary `setLocale` call in `luxon.DateTime.prototype.toJSON` patch

closes #867

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
aab-odoo pushed a commit that referenced this pull request Jun 16, 2021
- file is now ordered by clean sections
- `confirm()` helper has been renamed to something more appropriate
- `strftimeToLuxonFormat()` was manually cached. It now uses `memoize()` from `core/utils/functions`
- memoization of `stripAlphaDupes()` because it is prone to get called really often with same arguments.
- no more export `parseSmartDateInput()` as it is never imported elsewhere.
- remove unecessary `setLocale` call in `luxon.DateTime.prototype.toJSON` patch

closes #867

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
aab-odoo pushed a commit that referenced this pull request Jun 16, 2021
- file is now ordered by clean sections
- `confirm()` helper has been renamed to something more appropriate
- `strftimeToLuxonFormat()` was manually cached. It now uses `memoize()` from `core/utils/functions`
- memoization of `stripAlphaDupes()` because it is prone to get called really often with same arguments.
- no more export `parseSmartDateInput()` as it is never imported elsewhere.
- remove unecessary `setLocale` call in `luxon.DateTime.prototype.toJSON` patch

closes #867

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
aab-odoo pushed a commit that referenced this pull request Jun 17, 2021
- file is now ordered by clean sections
- `confirm()` helper has been renamed to something more appropriate
- `strftimeToLuxonFormat()` was manually cached. It now uses `memoize()` from `core/utils/functions`
- memoization of `stripAlphaDupes()` because it is prone to get called really often with same arguments.
- no more export `parseSmartDateInput()` as it is never imported elsewhere.
- remove unecessary `setLocale` call in `luxon.DateTime.prototype.toJSON` patch

closes #867

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
aab-odoo pushed a commit that referenced this pull request Jun 17, 2021
- file is now ordered by clean sections
- `confirm()` helper has been renamed to something more appropriate
- `strftimeToLuxonFormat()` was manually cached. It now uses `memoize()` from `core/utils/functions`
- memoization of `stripAlphaDupes()` because it is prone to get called really often with same arguments.
- no more export `parseSmartDateInput()` as it is never imported elsewhere.
- remove unecessary `setLocale` call in `luxon.DateTime.prototype.toJSON` patch

closes #867

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
aab-odoo pushed a commit that referenced this pull request Jun 18, 2021
- file is now ordered by clean sections
- `confirm()` helper has been renamed to something more appropriate
- `strftimeToLuxonFormat()` was manually cached. It now uses `memoize()` from `core/utils/functions`
- memoization of `stripAlphaDupes()` because it is prone to get called really often with same arguments.
- no more export `parseSmartDateInput()` as it is never imported elsewhere.
- remove unecessary `setLocale` call in `luxon.DateTime.prototype.toJSON` patch

closes #867

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
aab-odoo pushed a commit that referenced this pull request Jun 18, 2021
- file is now ordered by clean sections
- `confirm()` helper has been renamed to something more appropriate
- `strftimeToLuxonFormat()` was manually cached. It now uses `memoize()` from `core/utils/functions`
- memoization of `stripAlphaDupes()` because it is prone to get called really often with same arguments.
- no more export `parseSmartDateInput()` as it is never imported elsewhere.
- remove unecessary `setLocale` call in `luxon.DateTime.prototype.toJSON` patch

closes #867

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
aab-odoo pushed a commit that referenced this pull request Jun 18, 2021
- file is now ordered by clean sections
- `confirm()` helper has been renamed to something more appropriate
- `strftimeToLuxonFormat()` was manually cached. It now uses `memoize()` from `core/utils/functions`
- memoization of `stripAlphaDupes()` because it is prone to get called really often with same arguments.
- no more export `parseSmartDateInput()` as it is never imported elsewhere.
- remove unecessary `setLocale` call in `luxon.DateTime.prototype.toJSON` patch

closes #867

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants