Re: [Flashcoders] Get Timezone City?
Thanks for the ideas guys, i'll see what the client says about any of these work arounds... On 17 May 2012 13:16, Karl DeSaulniers k...@designdrumm.com wrote: You could always prompt your user to enter their city if your needing specifics. Getting the city from the time zone is a bit general. Getting the city by ip can also get a little misleading since ips can be spoofed or you could end up getting their ISPs ip or if it's a virtual machine. But that's my experience. Someone may have a solution I'm not aware of. Best, Karl Sent from losPhone On May 17, 2012, at 6:48 AM, Karl DeSaulniers k...@designdrumm.com wrote: That's what this code does. Gets the timezone like CST or America/Chicago for example based on local settings. Or is that not what your wanting? Best, Karl On May 17, 2012, at 4:30 AM, David Hunter wrote: Thanks Karl, I can grab the time using the Date class in AS3, I'm more stuck on how to detect what city they have set in their system preferences or some other way to detect what city they are in. IP address? Thanks, David On 17 May 2012 00:37, Karl DeSaulniers k...@designdrumm.com wrote: You could use PHPs date function. http://us.php.net/manual/en/**function.date.php http://us.php.net/manual/en/function.date.php http://www.w3schools.com/php/**func_date_date.asp http://www.w3schools.com/php/func_date_date.asp ?php $timezone = date('T'); ? or ?php $timezone = date('e'); ? Then flashvars it into your flash clock. Just a thought. Best, Karl On May 16, 2012, at 5:20 PM, David Hunter wrote: Hi All, I'm making a screensaver / air app of a clock and one of the desired features is to grab the city of the timezone that the computer is set to. For example my clock is set to GMT and London, but I could set it to Eastern Daylight Time and the city to New York or Miami. Does anyone know if it is possible to grab the city selected associated with the time of the computer? (I'm on a mac, not sure if the setup is the same on a PC...) Thanks, David -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcoders http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcoders http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Get Timezone City?
Thanks Karl, I can grab the time using the Date class in AS3, I'm more stuck on how to detect what city they have set in their system preferences or some other way to detect what city they are in. IP address? Thanks, David On 17 May 2012 00:37, Karl DeSaulniers k...@designdrumm.com wrote: You could use PHPs date function. http://us.php.net/manual/en/**function.date.phphttp://us.php.net/manual/en/function.date.php http://www.w3schools.com/php/**func_date_date.asphttp://www.w3schools.com/php/func_date_date.asp ?php $timezone = date('T'); ? or ?php $timezone = date('e'); ? Then flashvars it into your flash clock. Just a thought. Best, Karl On May 16, 2012, at 5:20 PM, David Hunter wrote: Hi All, I'm making a screensaver / air app of a clock and one of the desired features is to grab the city of the timezone that the computer is set to. For example my clock is set to GMT and London, but I could set it to Eastern Daylight Time and the city to New York or Miami. Does anyone know if it is possible to grab the city selected associated with the time of the computer? (I'm on a mac, not sure if the setup is the same on a PC...) Thanks, David -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Get Timezone City?
Hi David, The IP address could work if your Air has access to that. I don't know much about it, but for a web project I worked on a few years ago, the SEO people used the IP to determine the user's country and redirect according to that (Ireland or US site). I think they were using some kind of Geo-IP database service for this. Karina -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter Sent: 17 May 2012 10:31 To: Flash Coders List Subject: Re: [Flashcoders] Get Timezone City? Thanks Karl, I can grab the time using the Date class in AS3, I'm more stuck on how to detect what city they have set in their system preferences or some other way to detect what city they are in. IP address? Thanks, David On 17 May 2012 00:37, Karl DeSaulniers k...@designdrumm.com wrote: You could use PHPs date function. http://us.php.net/manual/en/**function.date.phphttp://us.php.net/manu al/en/function.date.php http://www.w3schools.com/php/**func_date_date.asphttp://www.w3schools .com/php/func_date_date.asp ?php $timezone = date('T'); ? or ?php $timezone = date('e'); ? Then flashvars it into your flash clock. Just a thought. Best, Karl On May 16, 2012, at 5:20 PM, David Hunter wrote: Hi All, I'm making a screensaver / air app of a clock and one of the desired features is to grab the city of the timezone that the computer is set to. For example my clock is set to GMT and London, but I could set it to Eastern Daylight Time and the city to New York or Miami. Does anyone know if it is possible to grab the city selected associated with the time of the computer? (I'm on a mac, not sure if the setup is the same on a PC...) Thanks, David -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://ch attyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://cha ttyfig.figleaf.com/mailman/listinfo/flashcoders -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Get Timezone City?
That's what this code does. Gets the timezone like CST or America/Chicago for example based on local settings. Or is that not what your wanting? Best, Karl On May 17, 2012, at 4:30 AM, David Hunter wrote: Thanks Karl, I can grab the time using the Date class in AS3, I'm more stuck on how to detect what city they have set in their system preferences or some other way to detect what city they are in. IP address? Thanks, David On 17 May 2012 00:37, Karl DeSaulniers k...@designdrumm.com wrote: You could use PHPs date function. http://us.php.net/manual/en/**function.date.phphttp://us.php.net/manual/en/function.date.php http://www.w3schools.com/php/**func_date_date.asphttp://www.w3schools.com/php/func_date_date.asp ?php $timezone = date('T'); ? or ?php $timezone = date('e'); ? Then flashvars it into your flash clock. Just a thought. Best, Karl On May 16, 2012, at 5:20 PM, David Hunter wrote: Hi All, I'm making a screensaver / air app of a clock and one of the desired features is to grab the city of the timezone that the computer is set to. For example my clock is set to GMT and London, but I could set it to Eastern Daylight Time and the city to New York or Miami. Does anyone know if it is possible to grab the city selected associated with the time of the computer? (I'm on a mac, not sure if the setup is the same on a PC...) Thanks, David -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Get Timezone City?
You could always prompt your user to enter their city if your needing specifics. Getting the city from the time zone is a bit general. Getting the city by ip can also get a little misleading since ips can be spoofed or you could end up getting their ISPs ip or if it's a virtual machine. But that's my experience. Someone may have a solution I'm not aware of. Best, Karl Sent from losPhone On May 17, 2012, at 6:48 AM, Karl DeSaulniers k...@designdrumm.com wrote: That's what this code does. Gets the timezone like CST or America/Chicago for example based on local settings. Or is that not what your wanting? Best, Karl On May 17, 2012, at 4:30 AM, David Hunter wrote: Thanks Karl, I can grab the time using the Date class in AS3, I'm more stuck on how to detect what city they have set in their system preferences or some other way to detect what city they are in. IP address? Thanks, David On 17 May 2012 00:37, Karl DeSaulniers k...@designdrumm.com wrote: You could use PHPs date function. http://us.php.net/manual/en/**function.date.phphttp://us.php.net/manual/en/function.date.php http://www.w3schools.com/php/**func_date_date.asphttp://www.w3schools.com/php/func_date_date.asp ?php $timezone = date('T'); ? or ?php $timezone = date('e'); ? Then flashvars it into your flash clock. Just a thought. Best, Karl On May 16, 2012, at 5:20 PM, David Hunter wrote: Hi All, I'm making a screensaver / air app of a clock and one of the desired features is to grab the city of the timezone that the computer is set to. For example my clock is set to GMT and London, but I could set it to Eastern Daylight Time and the city to New York or Miami. Does anyone know if it is possible to grab the city selected associated with the time of the computer? (I'm on a mac, not sure if the setup is the same on a PC...) Thanks, David -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Get Timezone City?
You could use PHPs date function. http://us.php.net/manual/en/function.date.php http://www.w3schools.com/php/func_date_date.asp ?php $timezone = date('T'); ? or ?php $timezone = date('e'); ? Then flashvars it into your flash clock. Just a thought. Best, Karl On May 16, 2012, at 5:20 PM, David Hunter wrote: Hi All, I'm making a screensaver / air app of a clock and one of the desired features is to grab the city of the timezone that the computer is set to. For example my clock is set to GMT and London, but I could set it to Eastern Daylight Time and the city to New York or Miami. Does anyone know if it is possible to grab the city selected associated with the time of the computer? (I'm on a mac, not sure if the setup is the same on a PC...) Thanks, David -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders