Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Any option or opinion to do this with rules ???
Any option or opinion to do this with rules ???
Comments
Comment #1
cdale CreditAttribution: cdale commentedI doubt very much you would use or need rules to do this.
It does seem like an interesting idea, but currently would be rather impractical. For example, how would you handle UTC? Ignore it? Or set it to the United Kingdom? Aside from that, we'd also need to figure out how to map the timezone names to the actual country codes. This would probably need to be a giant array, and not something I'd really want to look at at the moment.
Patches to add this functionality are welcome.
Comment #2
cweagansI don't think this is possible to do in an automated fashion, actually. GMT-7, for example, encompasses a wide range of countries from Canada down to the bottom of South America.
Comment #3
carajito CreditAttribution: carajito commentedWith a new rule event.
From the path url -> change the field value to the same of te geolocalization o the user data like user country
Some info to create new events http://drupal.org/node/298549