assorted yml: dateparse update. related to #14072

This commit is contained in:
Garfield69 2023-02-24 21:13:15 +13:00
parent 38dc2f123b
commit c122921fc8
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ search:
- name: re_replace - name: re_replace
args: ["March", "Mar"] args: ["March", "Mar"]
- name: dateparse - name: dateparse
args: "Jan 2, 2006, 3 PM" args: "MMM d, yyyy, h tt"
date_noon: date_noon:
# Sept. 30, 2022, noon # Sept. 30, 2022, noon
selector: div.release_20:contains(", noon") selector: div.release_20:contains(", noon")
@ -128,7 +128,7 @@ search:
- name: re_replace - name: re_replace
args: [" noon", " 12 pm"] args: [" noon", " 12 pm"]
- name: dateparse - name: dateparse
args: "Jan 2, 2006, 3 PM" args: "MMM d, yyyy, h tt"
date: date:
text: "{{ if or .Result.date_full .Result.date_abbr .Result.date_noon }}{{ or .Result.date_full .Result.date_abbr .Result.date_noon }}{{ else }}now{{ end }}" text: "{{ if or .Result.date_full .Result.date_abbr .Result.date_noon }}{{ or .Result.date_full .Result.date_abbr .Result.date_noon }}{{ else }}now{{ end }}"
size: size: