Unix/Linux Go Back    


Windows & DOS: Issues & Discussions All Windows and DOS questions should go here as well. Discuss UNIX to Windows (Desktop or Server) here!

NFS Share Time an Hour Ahead

Windows & DOS: Issues & Discussions


Tags
nsf, time

Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 04-03-2015   -   Original Discussion by Paul Standley
Paul Standley Paul Standley is offline
Registered User
 
Join Date: Apr 2015
Last Activity: 3 April 2015, 4:03 PM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
NFS Share Time an Hour Ahead

Time on unix server shows 8:00a CST
Time on Windows 7 Box shows 8:00a CST

However when you access an NFS share the time stamp on the files show an hour ahead? Talking about a newly created file shows an hour ahead so at 8:00a the file will show a time stamp of 9:00a CST

the problem it causes, our server documents production runs, if a production run ends within the hour before midnight instead of posting to accounting that same day it will post to the following day since the accounting system picks up the file from the nfs share. Creates havoc for proper accounting

problem began with the change in daylight savings time... I still don't get it though with both the unix server and windows desktop displaying the same time
Sponsored Links
    #2  
Old Unix and Linux 04-04-2015   -   Original Discussion by Paul Standley
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 19 November 2017, 7:33 PM EST
Location: NM
Posts: 11,239
Thanks: 571
Thanked 1,116 Times in 1,030 Posts
The only thing that can do that? Environment variable settings. Specifically TZ.

For whatever reason the NFS process has (an example, I do not know for sure)
a TZ variable that ends in -500, a bogus time offset for CST. You can make time display almost anything you want (within 24 hours) by tinking with the TZ variable. At the exact same moment. See below.

POSIX Systems will respond correctly to three formats of the TZ variable, even patently ridiculous values: Have a read here and then work with that. BTW the filetimes themselves are not messed up - they are in epoch seconds, not a format like May 7 1999 3:00pm CST. The files are in no way "broken". It is completely caused by the C runtime library time routines getting a bad TZ value.

The GNU C Library: TZ Variable

Then play with the TZ variable's contents and then run date and you will see what I mean.

Last edited by jim mcnamara; 04-04-2015 at 12:08 AM..
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
NFS share and groups cjhilinski Red Hat 14 03-11-2015 11:24 AM
NFS share mastansaheb Red Hat 1 04-10-2013 04:28 AM
How to convert 24 hour time to 12 hour timing? nex_asp Shell Programming and Scripting 13 01-30-2013 05:24 AM
trim 0 ahead of a time,pls help~ netbanker Shell Programming and Scripting 7 07-01-2010 02:08 PM
NFS share error rcmrulzz Red Hat 2 05-14-2008 09:05 AM



All times are GMT -4. The time now is 11:42 AM.