diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/sntp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sntp.c b/net/sntp.c index 6422eef72e..d7b9e5563a 100644 --- a/net/sntp.c +++ b/net/sntp.c @@ -68,7 +68,7 @@ static void sntp_handler(uchar *pkt, unsigned dest, struct in_addr sip, */ memcpy(&seconds, &rpktp->transmit_timestamp, sizeof(ulong)); - to_tm(ntohl(seconds) - 2208988800UL + net_ntp_time_offset, &tm); + rtc_to_tm(ntohl(seconds) - 2208988800UL + net_ntp_time_offset, &tm); #if defined(CONFIG_CMD_DATE) rtc_set(&tm); #endif |