Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 09-08-2008, 09:02 AM   #1
pepak
Fanatic
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 594
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-505
Strange issue with media.xml

I am writing myself an application for creating collections, and I have enountered a strange problem:

I need to fill in the 'date' attribute of <xs1:text> tag:

Code:
<xs1:text ... date="Wed, 03 Sep 2008 16:57:34 GMT" />
The date used is, curiously enough, file creation date rather than file modification date, but I can deal with that. The strange thing is that as far as file management utilities and Windows API in general, the file for the above example has a creation date of "03 Sep 2008 17:57:34" - which would be more or less correct since I am in a GMT+1 timezone. But: How does the Reader know that my timezone is +1? It can't be getting that information from its filesystem since it uses FAT and FAT does not store timezone.

I need to know because if I keep the date at the value I read from the filesystem, the Reader will think the file got changed and will rebuild the cache for it. I need it to accept the modifications I did to media.xml, and that means I need to set the correct date - which is different than the date in filesystem.

Any ideas?
pepak is offline   Reply With Quote
Old 09-08-2008, 09:17 AM   #2
igorsk
Wizard
igorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfolded
 
Posts: 3,443
Karma: 52235
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
There is a packet eBook Library sends to the Reader when it connects. It contains the PC's current time and timezone. Reader stores it in a local file.
igorsk is offline   Reply With Quote
Old 09-08-2008, 09:42 AM   #3
pepak
Fanatic
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 594
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-505
Ah. That would explain how the reader knew about the timezone - I did run the Library once.

OK, I can handle that.
pepak is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre keeps saying database of books is corrupted. Media.xml file seajewel Calibre 8 02-26-2010 09:35 PM
media.xml reported missing every time 505 inserts ndep Calibre 1 10-10-2009 11:18 PM
WinXP 0.6.5 corrupted media.xml siulayhumga Calibre 3 08-10-2009 01:34 PM
Media.XML and how to create one from pc Student1 Sony Reader Dev Corner 4 05-06-2009 07:39 PM
Creating media.xml manually pepak Sony Reader 5 11-28-2008 10:26 AM


All times are GMT -4. The time now is 02:22 AM.


MobileRead.com is a privately owned, operated and funded community.