Random Project

update for ru and xn--p1ai domains

now date format for “.ru” and cyrillic “.xn--p1ai” domains is ISO
so you should change

this string
/paid-till:/ && $NF ~ DATE_YYYY_MM_DD_DOT {split($2, a, “.”); printf(“%s-%s-%s”, a[1], a[2], a[3]); exit}

to this one
/paid-till:/ && DATE_ISO_FULL { get_iso_date($0, “:”, 2) }