[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

UTC or localtime



On Tue, 13 Jul 2010 22:32:09 -0600, Dave Thayer wrote:

>> The camera is the same. Something get changed on Debian side? How can I
>> fix it? (photos are from mounted SD card via SD card reader).
> 
> You could be getting bit by Bug #577597 - "system with UTC=yes in
> /etc/default/rcS mounts FAT USB disk with wrong file time". 

Bingo! 

$ grep UTC /etc/default/rcS
UTC=yes

Thanks a lot!

Let me try to understand the bug and its work-around,

Having UTC=yes in the /etc/default/rcS file means the Linux system is 
using UTC time? Then how about?

$ date
Wed Jul 14 11:49:39 EDT 2010

> The bug
> report contains the following work-around, as root run these commands:
> 
> hwclock --systohc --utc
> hwclock --hctosys --utc

This fix change my BIOS CMOS clock using UTC, correct? Then when I boot 
into BIOS, will the time be correct localtime? How about when I boot into 
Windows, will it get confused? 

> My rockboxed ipod shows files with timestamps off by the time difference
> between localtime and UTC, as if the tz=UTC option was selected in
> mount, and when I apply the work-around in the bug report things are
> straightened out.

Wait a minute, from man page:

The tz=UTC option "disables the conversion of timestamps between local 
time (as used by Windows on FAT) and UTC (which Linux uses internally).  
This is particuluarly useful when mounting devices (like digital cameras) 
that are set to UTC in order to avoid the pitfalls of local time."

This seems to be the fix for me, but you are saying that it get entirely 
different effect at your side?

Thanks

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/


Reply to: