Remove hard-coded timestamp for regexes

This commit is contained in:
natsee 2024-01-12 17:21:07 +01:00
parent 9a7e22806d
commit 0ec40eafb4
No known key found for this signature in database
GPG Key ID: 233CF3150A89BED8

View File

@ -272,7 +272,7 @@ export class SearchFormComponent implements OnInit {
let timestamp: number;
this.regexDate.test(searchText) ? timestamp = Math.floor(new Date(searchText).getTime() / 1000) : timestamp = searchText;
// Check if timestamp is too far in the future or before the genesis block
if (timestamp > Math.floor(Date.now() / 1000) || timestamp < 1231006505) {
if (timestamp > Math.floor(Date.now() / 1000)) {
this.isSearching = false;
return;
}