I will give an example of setting up an NTP client on a Juniper MX204 for time synchronization.
Specify the time zone:
time-zone Europe/Kiev;
Specify the IP address of the NTP server with which you want to synchronize time:
set system ntp server 192.168.5.1
If necessary, you can specify the source address:
edit system ntp
set source-address 192.168.5.5
show
exit
Check the configuration and apply the changes:
edit system
show
commit check
commit
Check the current time and NTP status:
run show system uptime
run show ntp status
run show system ntp threshold
run show ntp associations
New log entries should also show the correct time:
run show log messages
See also my article:
Juniper MX204 setup