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

Go Back   MobileRead Forums > E-Book Devices > Sony Portable Reader PRS-500/505 > Reader PRS-505 Dev Corner

Welcome to the MobileRead Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community today, you will have fewer ads, access to post topics, communicate privately with other members, respond to polls, upload content and access many other special features.

If you have any problems with the registration process or your account login, please contact us.

Hint: Don't have time to visit us daily? Subscribe to our main RSS feed to receive our frontpage posts at your convenience.

Notices

Reader PRS-505 Dev Corner Linux, hacking and development of software and hardware (specific to the PRS-505)

Reply
 
Thread Tools Search this Thread Display Modes
Old 09-08-2008, 09:02 AM   #1
pepak
Addict
pepak will become famous soon enoughpepak will become famous soon enoughpepak will become famous soon enoughpepak will become famous soon enoughpepak will become famous soon enoughpepak will become famous soon enough
 
Posts: 297
Karma: 600
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 can tame squirrels without the assistance of a chair or a whip.igorsk can tame squirrels without the assistance of a chair or a whip.igorsk can tame squirrels without the assistance of a chair or a whip.igorsk can tame squirrels without the assistance of a chair or a whip.igorsk can tame squirrels without the assistance of a chair or a whip.igorsk can tame squirrels without the assistance of a chair or a whip.igorsk can tame squirrels without the assistance of a chair or a whip.igorsk can tame squirrels without the assistance of a chair or a whip.igorsk can tame squirrels without the assistance of a chair or a whip.igorsk can tame squirrels without the assistance of a chair or a whip.igorsk can tame squirrels without the assistance of a chair or a whip.
 
Posts: 2,401
Karma: 11026
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.
__________________
Yet another reverse engineering blog
Like to chat? Join #mobileread
igorsk is offline   Reply With Quote
Old 09-08-2008, 09:42 AM   #3
pepak
Addict
pepak will become famous soon enoughpepak will become famous soon enoughpepak will become famous soon enoughpepak will become famous soon enoughpepak will become famous soon enoughpepak will become famous soon enough
 
Posts: 297
Karma: 600
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
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre keeps saying database of books is corrupted. Media.xml file seajewel Calibre 3 07-07-2009 07:19 PM
Creating media.xml manually pepak Reader Troubleshooting 5 11-28-2008 10:26 AM
Ebook Library refusing to load on screen when new media.xml file required seajewel Calibre 0 06-29-2008 07:46 PM
Cooper blog: News media is lost about digital media, too Steve Jordan Deals, Freebies, and Resources 0 11-05-2007 10:06 AM
Strange issue the reader fixed by itself. Cpt. Tim Reader Troubleshooting 0 05-15-2007 03:39 PM


All times are GMT -4. The time now is 08:18 PM.


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