Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Plain Text by slyder ( 16 years ago )
Richard, 18.04.2010 20:10:41:
We have an app where a contractor uploads a photo to our client on our server.  Our client needs the original date and time of that file on the contactors local drive

Richard, 20:11:04:
in other words, the date and time that photo was taken

MSN, 20:12:59:
hm, i think it is impossible to get datetime value from local computer... but if you need this data only for photos it probably could be taken from meta data for photo file.... a lot of photo files have some meta information which contains data about time when photo wes taken, aperture and probably some other info

Richard, 20:13:33:
yes, the EXIF metadata

MSN, 20:13:36:
yep

MSN, 20:13:48:
yes, it is could be used for getting such info

Richard, 20:14:55:
I'm just concerned that there will be problems with the EXIF data.... some older cameras may not use that or else it may be in a non-standard format.  Also, what happens if the contractor didn't set up the camera's date and time?

MSN, 20:17:00:
yes, in this case we will have invalid date/time value... but then you read date/time creation value form customer pc it is too invalid, because it is time of copying photo from camera, but not time when photo were taken

Richard, 20:17:46:
correct... but at least it will be closer

Richard, 20:18:46:
actually, when copying from flash drive or camera directly to the local hard drive, it should retain the original date/time

MSN, 20:19:12:
i am not sure about it.. i can canon 40d and looks like creation time localy it is time of copying files

MSN, 20:19:26:
it is depends of software which copying files i think

MSN, 20:19:31:
Exif was created ni 1998

MSN, 20:19:39:
so i think all cameras have it

MSN, 20:20:24:
i will investigate issue about reading creation time now.. but not sure that it is possible by JS

Richard, 20:21:14:
ok

 

Revise this Paste

Your Name: Code Language: