Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow leading tabs in API fields #1273

Closed
jmathai opened this issue May 21, 2013 · 1 comment
Closed

Allow leading tabs in API fields #1273

jmathai opened this issue May 21, 2013 · 1 comment

Comments

@jmathai
Copy link
Member

jmathai commented May 21, 2013

To allow mobile apps to set a title automatically and still have the ability to reverse/rollback/etc we are allowing the \t to be part of the API fields.

Related issues

photo/mobile-ios#310
photo/mobile-android#441

@httpdispatch
Copy link

As for me better is to fix dateCreated timestamp issue. Then we will be able to generate title on the fly depend on user device locale. We've discussed dateCreated problem with @patricksan and my probposal for fix is like this:

If photo has exif date information save it parsed as timestamp in UTC timezone instead of GMT-7 like it is now. Then on device we can convert it to device specified timezone. So date will be always the same independently of user timezone settings. I mean if exif is 24.05.2013 10:00 then user will always see exact this information 24.05.2013 10:00 independently of timezone settings on device.

If photo doesn't have exif information when we need to take some parameter from device to save the timestamp. That timestamp should come already converted to UTC timezone from device. So it can be converted to any timezone in the future.

example:
we have photo with exif information like this:
24.05.2013 16:00
GMT+0 timestamp is 1369411200
but server stores it in GMT -7 which is 1369386000. In such case it is not possible to convert it back to 24.05.2013 16:00 on user device such as device doesn't know anything about server timezone offset GMT-7.
In case server will send information in GMT+0 on device side we can convert it to user timezone.
If my timezone is GMT+3 and i receive 1369411200 on device side i reduce 3 hours from it 3*3600 and will receive 24.05.2013 16:00 timestamp but in GMT+3 timezone

If we upload photo without exif, device should to send additional information in UTC timezone during upload. It can be file modification date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants