On 4 Mar 2004 16:15:44 GMT,
John L. Cunningham <(E-Mail Removed)> wrote:
> In article <40445a2c$(E-Mail Removed)>, Richard Conway wrote:
>
>> Does anyone know if I can configure the SMB client running on the Linux
>> platform to behave the same as the Windows 2003 SMB client, i.e. I want my
>> timestamps to be set according to the current time on the server as opposed
>> to the client.
>
> NET TIME?
>
SMB file systems expects time stamp in local time. Therefore the linux
kernel needs to know the UTC to localtime offset to translate unix
time to localtime. This doesn't occur automatically, but setting the
timezone information in a call to settimeofdat() would do it (at least on
kernel 2.2). Remember that the unix and linux kernel does not otherwise
use localtime for anything so failing to set the timezone in the kernel
doesn't affect anything except SMB and VFAT file systems time stamps.
Villy
|