My Oracle Linux 6 system date prints:

$ date Sat Mar 18 08:05:10 PDT 2017

And /var/log/cron timestamp prints:

Mar 18 15:05:04

Why is it different, where can I make the change (is there any conf file), so that cron log prints the log in same timezone as system?

closed as off-topic by ilkkachu, Tim Kennedy, thrig, Jeff Schaller, Satō Katsura Mar 20 '17 at 16:37

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – ilkkachu, thrig, Jeff Schaller, Satō Katsura
If this question can be reworded to fit the rules in the help center, please edit the question.

  • I guess time stamp is printed using UTC time zone, while date outputs a time in your current time zone. – ddnomad Mar 18 '17 at 18:51
  • Thanks @ddnomad Issue resolved. Did following: 1) /etc/init.d/rsyslog restart 2) /etc/init.d/crond restart – Soumali Chatterjee Mar 20 '17 at 11:47

The issue was resolved by running the following:

/etc/init.d/rsyslog restart
/etc/init.d/crond restart

Not the answer you're looking for? Browse other questions tagged or ask your own question.