Comments (2)
Investigation suggests that:
- The application currently uses
MediaStore.Images.Media.DATE_MODIFIED
to determine the timestamp at which an image was last modified - This field is populated by the Android MediaScanner based on the information in the image's EXIF block
- The image in the EXIF block does not have a timezone associated with it
- The Android MediaScanner re-scans the external SD card when it is re-mounted
Due to this, it seems that each time the image is processed by the MediaScanner, the date information is extracted from the EXIF and converted to Epoch time based on the current timezone. If the timezone has changed since the image being taken (or has shifted due to DST), this means that the calculated Epoch time will be different (e.g. the Epoch time of 13:01:01 on Jan 1st 2015 will be calculated differently for a phone set to GMT as compared to a phone set to CET).
The solution would seem to be to use the file's timestamp rather than the data from the MediaStore/EXIF.
from androidphotobackup.
Unfortunately getting the time from the filestamp doesn't work in a reliable way in the case that the SDcard is FAT formatted. FAT timestamps are interpreted as being in 'local time' (unless various mount options are used to change that, such as tz or time_offset). This means that rebooting the unit after the timezone has changed will result in the timestamp of all files on the SDcard seeming to change, referenced to the new timezone.
from androidphotobackup.
Related Issues (14)
- File checking does not work with >1000 photos HOT 1
- Dropbox file limit
- Wifi Sleep
- handleFiles does not correctly handle directory creation failure
- Upgrade to Dropbox Api v2
- Switch to OneDrive SDK
- Support API V23 permissions system
- Update backup service to retrieve file list
- Check internet connectivity status before starting main backup
- Clear notification after selection
- Tags are too long
- Backup service can be unexpectedly killed in low memory situation
- Behaviour when drop-box quota is exceeded is unknown
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from androidphotobackup.