Changeset 397260
- Timestamp:
- 06/14/2011 11:33:32 PM (15 years ago)
- Location:
- sunrise-sunset/trunk
- Files:
-
- 1 added
- 2 edited
-
functions.php (added)
-
readme.txt (modified) (2 diffs)
-
sunrisesunset.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sunrise-sunset/trunk/readme.txt
r348773 r397260 2 2 Contributors: rxn 3 3 Tags: sunrise, sunset, widget 4 Requires at least: 3. 14 Requires at least: 3.0 5 5 Tested up to: 3.0.5 6 Stable tag: 1.0. 26 Stable tag: 1.0.3 7 7 License: GPLv2 8 8 … … 42 42 43 43 == Changelog == 44 = 1.0.3 = 45 * Added Arizona 46 44 47 = 1.0.1 = 45 48 * Added screenshots. -
sunrise-sunset/trunk/sunrisesunset.php
r348579 r397260 81 81 } 82 82 83 if ($instance['timezone'] == 'US/Arizona') { 84 $select_box .= sprintf('<option value="%s" selected="yes">%s</option>', 'US/Arizona', 'Arizona'); 85 } else { 86 $select_box .= sprintf('<option value="%s">%s</option>', 'US/Arizona', 'Arizona'); 87 } 88 // add arizona here 89 83 90 $select_box .= '</select>'; 84 91 echo $select_box; … … 119 126 function ss_get_sunset($instance) { 120 127 121 $latitude = array('America/Chicago' => 41.51, 'America/Los_Angeles' => 34.30, 'America/New_York' => 40.47); 122 $longitude = array('America/Chicago' => -87.39, 'America/Los_Angeles' => -118.15, 'America/New_York' => -73.58); 128 // add arizona here 129 $latitude = array('America/Chicago' => 41.51, 'America/Los_Angeles' => 34.30, 'America/New_York' => 40.47, 'US/Arizona' => 33.29); 130 $longitude = array('America/Chicago' => -87.39, 'America/Los_Angeles' => -118.15, 'America/New_York' => -73.58, 'US/Arizona' => -122.04); 131 132 123 133 124 134 $target_time_zone = $instance['timezone'];
Note: See TracChangeset
for help on using the changeset viewer.