angular - Rxjs timeout() está a gerar erro para algumas datas futuras
O timeout() do Rxjs não está a funcionar corretamente para alguns Dias ou Timestamp
import { interval } from 'rxjs';
import { timeout } from 'rxjs/operators';
const seconds = interval(1000);
seconds.pipe(
// Present Date (Thu Mar 19 2020 14:40:58) => 1584628858530
// to UTC time & date: (Wed Dec 30 2020 18:30:00) => 1609353000000-------Not working
// to UTC time & date: (Mon Dec 30 2030 18:30:00) => 1924885800000-------Working
timeout(new Date(1609353000000)), // replace timestamp
)
.subscribe(
value => console.log(value),
err => console.log(err)
);
Clique aqui para a Documentação Original. Verifique o Exemplo 2.