Gateway last seen

Gateway received up-link.
Node is seeing last seen- few second but gateway always have seen
in 5 minutes.
If I switched off the gateway then last seen vary according time .
Gateway ping every minute so where wrong .

For the gateway last-seen the gateway stats are being used. I believe it is using the timestamp from the stats so it might be either your server or gateway have an incorrect configured time .