Tag Info

New answers tagged

3

You may simply use %3N to truncate the nanoseconds to the 3 most significant digits (which then are milliseconds): $ date +%s%3N 1397392146866 This works e.g. on my kubuntu 12.04. But be aware, that %N may not be implemented depending on your target system. E.g. tested on an embedded system (buildroot rootfs, compiled using a non-HF arm cross toolchain) ...


1

In order to (correctly) change the timezone of your system you will need to access the file /etc/sysconfig/clock and edit ZONE=<filename> value, for example ZONE="Europe/Belgrade" Then proceed with linking the zoneinfo file to /etc/localtime ln -sf /usr/share/zoneinfo/Europe/Belgrade /etc/localtime (if the question is what is resetting timezone ...


2

Uh, well, the default time zone on a Windows OS is Redmond, Washington time. :P But that's irrelevant, since as HopelessN00b points out, timezone differences don't equal clock skew. But I'm going to bet time differences aren't your problem anyway. The error message mentions that the server gave you an invalid certificate. In order for that to happen, that ...


3

It's not a timezone problem - the system clock is skewed too far. Timezones... don't really affect the computer in this fashion - they use epoch time anyway. (Yes, even Windows uses a system based on epoch time.) Try using the /console switch (call mstsc.exe from a command line) and a local account - otherwise, you'll have to connect physically to the ...


0

As suggested, I would answer the question my elf. I ran the commands on the host under the /home directory, which is a NFS mounted directory. However, the time on the NFS server is not correct. Which results in the file changed took the wrong time from the NFS server.


1

You can create your own time standard on an isolated network that you control. This is a little kludgy. In order for this to work you must have all of your machines configured to only synch with the time servers you control. I have provided four possibilities. I think your best bet is the first or second depending on how strict your time constraints. ...



Top 50 recent answers are included