How does localization affect when day-specific annoucements are seen? - facebook

Facebook publishes announcements/reminders for day-specific events like birthdays. Does localization affect when these are seen?
For example, if my birthday is February 1st, would a friend in another time zone see the announcement starting at Feb 1 their local time, in my time zone, or at some other time zone (e.g. Greenwich mean)?
Any option seems to have drawbacks:
If announcements are based on local time, a friend who lives in India may see the announcement the morning of February 1st for him, but I'd get it in the evening of a previous day. Or if they lived in Japan they might not see it until the evening of Feb 1st, when it's already Feb 2nd for me.
If announcements are based on my local time then the friend may be confused about when my birthday actually is, as the announcement will show up for them for at least part of a different day.
For a birthday announcements these aren't very serious concerns; it's just an simple example to clarify the question

I think the question pretty much describes the dilemma, which has no good universal selection. In the birthday example, the problem is in the vague definition of “birthday”; it is a social convention more than anything else.
If you consider something more objective, like a “one-day offer” by a company, then it becomes even more obvious that the crucial issue is how things are defined. In global consideration, a company should define when the offer is valid (e.g., on a particular day in a particular timezone) and announce it accordingly.
The programming challenge is then to implement this properly. Mostly, it is a matter of making time references relative to a specific timezone, or the user’s timezone. These typically require different approaches: server-side vs. client-side. (The server timezone might not coincide with the intended timezone, but they should have a defined relationship.)

Related

7 day weather forecast api

I am making a weather app and need 7 day forecast. I have successfully parsed and implemented google weather api XML in my app but the problem is that Google Weather API returns the forecast information of four days including the current day. For example, if today were Saturday, Google Weather API would return the forecast information of today (Saturday), Sunday, Monday, and Tuesday.
Can I make google api return 7 day forecast? If not then is there another weather api that I can use to get that info? Please keep in mind this app is going to be sold globally so I need something that can forecast a user weather for 7 days no matter where in the world they are.
The reason I went with google is that bloody company is reliable and the chances of their servers going down are minimal.
You can take a look at this one, it isn't free but doesn't seem to be very expensive.
http://www.worldweatheronline.com/
I saw this one, but I'm not sure if it's global
http://graphical.weather.gov/xml/#xml_changes

Does Apple provide an index of localized terms that it uses?

Does Apple provide developers a set of standard terms in differing languages? The reason why I ask is that I'm having portions of my application localized and want standard terminology consistently applied throughout the app. I have utilized some tactics to do this with terms like 'Loading...' by changing the language on my device and observing how Apple has interpreted those terms in other languages. This has only gotten me so far however, and a resource that I can give a translator would go a long way in creating a seamless experience with the consistent application of terminology.
It has been two and a half years since posting my radar, but Apple has finally posted its iOS glossaries:
You can download them from developer.apple.com, or use this link to quickly find them:
https://developer.apple.com/downloads/index.action?name=Glossaries%20-%20iOS
EDIT 29 FEB 2020: This link is still valid and the glossaries have been updated on 15 JAN 2020 with everything updated for iOS 13.3.
At WWDC this year I went to the Localization Lab to get an answer to this question, since a bona fide answer from Apple was needed.
From one of their head cheeses in localization he told me that currently there are not any publicly available resources for download for iOS or Snow Leopard. He did tell me, though, that these resources were slated for release in the coming weeks after WWDC.
This answer will be updated when the information becomes available.
UPDATE 19 JUN 2012: Wow, it has been a whole year now! Obviously Apple didn't come through for us 'in a few weeks'. I did talk to them again this year and was given a contact to follow up with via email. I explained that they made a claim to have it last year and this was the response I got:
I did check with the documentation folks and found that they're still
planning on doing this but it's fallen behind other priorities. If you
haven't already done so, would you mind filing a bug report about
this? That's one of the best ways to convey the desire to the
appropriate people. While I've relayed this feedback to some people
it's always best to have a bug report directly from folks outside of
Apple. Feel free to forward me the bug number and I'll keep an eye on
it.
Our best bet at this point is to keep filling bug reports so that this gets more attention. Just for the record, I did file a bug report last year.
Apple provides a number of translation resources that you can download which may or may not be useful. One of these is AppleGlot, a tool for replacing strings in application resources. A number of XML-based glossaries for different languages are also available, but they're specific to AppleGlot. You may be able to make AppleGlot work for you, or you might just want to extract what you can from the language glossaries. AppleGlot and the glossaries were created to support translation of MacOS applications, so the terms are related to MacOS X and not iOS. Nevertheless, I think it's worth a look.

Are there iPhone hacker community groups that meet in the real world?

Just to clarify, by hacker community group I mean people who just like to get together once a month or once a week to have a beer (or tea or juice) and share with others what they've been working on and maybe even help each other out.
I know this already exists in the general hacking world, but I'm wondering if an iPhone specific one is running.
It would be also good to know if there is one in London, England (where I live). If not, I might consider starting one up! Any interest?
Feel free to comment on any of the above, especially if you are interested in forming one.
Thanks
This should be exactly what you are looking for
London iOS developer group
http://www.linkedin.com/groups?gid=1798655
http://iphonedevelopergroup.blogspot.com/
It will also be worth checking out NSCoderNights and CocoaHeads

Magento saves wrong date when generating or updating products in backend

i've got the problem that sometimes when i add or update a product with a certain attributeset, the date-value in one of the attributes changes after saving. It seems, that this problem only occurs on our live-system. In another forum i've read something about Magentos way handling the date() function is kinda unusual . I don't know whether there is a connection or not.
I would would really appreciate your help.
Please do clarify what sdek asked for, but I'm going to make a gigantic logical leap here and take a guess at your problem.
Magento stores dates in GMT in the database, which will make no sense whatsoever if you are also adding data to the system using things like strtotime. Your dates will appear to be off by your GMT offset (mine is -8). How this might happen depends on what you might be doing to add products other than simply adding them within the normal interface.
If that is not at all what you are asking about, feel free to disregard :)
Thanks,
Joe

Access Date Format problem on new server ie MM/DD/YY instead of DD/MM/YYYY

I seem to have ran into a problem I thought I had long ago solved
My web host recently changed one of the servers some of my sites are on, and this has caused problems with one site in particular that uses an access database
When inserting dates it seems to now take a date in the format DD/MM/YYYY and record it in the database as MM/DD/YYYY which as you can imagine is causing huge problems
I seem to remember before that this was an issue with how the server was setup, but cannot figure out what to change.
The servers use helm, so each website runs under its own user account, so obviously checking that my own server login is running under a UK profile makes little difference
The answer is to use parameterized queries (including insertions) and never rely on the database formatting of the data. If you have dates and times, you should always be dealing with those as dates and times instead of strings. When you query, fetch the result as a date time. When you insert/update, or provide dates within the query, provide those values as parameters with the appropriate date/time type.
(You haven't said how you're accessing the database, so it's hard to give more specific advice. I'm assuming you're doing it programmatically somehow though.)
Sorry guys, I should have continued googling a little more before I posted here, in trying to find a quick workaround by setting the session.localid from the asp page i found the root cause/solution!
In Control Panel > Regional Settings you need to change the country/location etc to UK