Changeset 21801
- Timestamp:
- 10/14/07 07:53:05 (9 months ago)
- Files:
-
- wp-polls/trunk/polls/polls-logs.php (modified) (2 diffs)
- wp-polls/trunk/polls/polls-manager.php (modified) (4 diffs)
- wp-polls/trunk/polls/polls.php (modified) (3 diffs)
- wp-polls/trunk/polls/wp-polls.mo (modified) (previous)
- wp-polls/trunk/polls/wp-polls.pot (modified) (1 diff)
- wp-polls/trunk/readme.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wp-polls/trunk/polls/polls-logs.php
r21734 r21801 299 299 $pollip_ip = $poll_ip->pollip_ip; 300 300 $pollip_host = $poll_ip->pollip_host; 301 $pollip_date = date_i18n(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), $poll_ip->pollip_timestamp);301 $pollip_date = mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll_ip->pollip_timestamp)); 302 302 if($i%2 == 0) { 303 303 $style = 'style=\'background-color: none\''; … … 327 327 $pollip_ip = $poll_ip->pollip_ip; 328 328 $pollip_host = $poll_ip->pollip_host; 329 $pollip_date = date_i18n(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), $poll_ip->pollip_timestamp);329 $pollip_date = mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll_ip->pollip_timestamp)); 330 330 if($pollip_aid != $poll_last_aid) { 331 331 if($pollip_aid == 0) { wp-polls/trunk/polls/polls-manager.php
r21734 r21801 398 398 <td width="20%" valign="top"><strong><?php _e('Start Date/Time', 'wp-polls'); ?></strong>:</td> 399 399 <td width="80%"> 400 <?php echo date_i18n(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), $poll_timestamp); ?><br />400 <?php echo mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll_timestamp)); ?><br /> 401 401 <input type="checkbox" name="edit_polltimestamp" id="edit_polltimestamp" value="1" onclick="check_polltimestamp()" /> <label for="edit_polltimestamp"><?php _e('Edit Start Date/Time', 'wp-polls'); ?></label><br /> 402 402 <?php poll_timestamp($poll_timestamp, 'pollq_timestamp', 'none'); ?> … … 410 410 _e('This Poll Will Not Expire', 'wp-polls'); 411 411 } else { 412 echo date_i18n(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), $poll_expiry);412 echo mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll_expiry)); 413 413 } 414 414 ?> … … 487 487 $poll_id = intval($poll->pollq_id); 488 488 $poll_question = stripslashes($poll->pollq_question); 489 $poll_date = date_i18n(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), $poll->pollq_timestamp);489 $poll_date = mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll->pollq_timestamp)); 490 490 $poll_totalvotes = intval($poll->pollq_totalvotes); 491 491 $poll_totalvoters = intval($poll->pollq_totalvoters); … … 495 495 $poll_expiry_text = __('No Expiry', 'wp-polls'); 496 496 } else { 497 $poll_expiry_text = date_i18n(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), $poll_expiry);497 $poll_expiry_text = mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll_expiry)); 498 498 } 499 499 if($i%2 == 0) { wp-polls/trunk/polls/polls.php
r21734 r21801 348 348 $poll_question_totalvotes = intval($poll_question->pollq_totalvotes); 349 349 $poll_question_totalvoters = intval($poll_question->pollq_totalvoters); 350 $poll_start_date = date_i18n(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), $poll_question->pollq_timestamp);350 $poll_start_date = mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll_question->pollq_timestamp)); 351 351 $poll_expiry = trim($poll_question->pollq_expiry); 352 352 if(empty($poll_expiry)) { 353 353 $poll_end_date = __('No Expiry', 'wp-polls'); 354 354 } else { 355 $poll_end_date = date_i18n(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), $poll_expiry);355 $poll_end_date = mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll_expiry)); 356 356 } 357 357 $poll_multiple_ans = intval($poll_question->pollq_multiple); … … 464 464 $poll_question_totalvoters = intval($poll_question->pollq_totalvoters); 465 465 $poll_question_active = intval($poll_question->pollq_active); 466 $poll_start_date = date_i18n(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), $poll_question->pollq_timestamp);466 $poll_start_date = mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll_question->pollq_timestamp)); 467 467 $poll_expiry = trim($poll_question->pollq_expiry); 468 468 if(empty($poll_expiry)) { 469 469 $poll_end_date = __('No Expiry', 'wp-polls'); 470 470 } else { 471 $poll_end_date = date_i18n(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), $poll_expiry);471 $poll_end_date = mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll_expiry)); 472 472 } 473 473 $poll_multiple_ans = intval($poll_question->pollq_multiple); … … 844 844 $poll_totalvotes_zero = false; 845 845 } 846 $poll_start_date = date_i18n(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), $polls_question['start']);846 $poll_start_date = mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $polls_question['start'])); 847 847 if(empty($polls_question['end'])) { 848 848 $poll_end_date = __('No Expiry', 'wp-polls'); 849 849 } else { 850 $poll_end_date = date_i18n(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), $polls_question['end']);850 $poll_end_date = mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $polls_question['end'])); 851 851 } 852 852 // Archive Poll Header wp-polls/trunk/polls/wp-polls.pot
r21734 r21801 3 3 "Project-Id-Version: WP-Polls 2.22\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2007-10-1 3 15:18+0800\n"5 "PO-Revision-Date: 2007-10-14 15:52+0800\n" 6 6 "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 7 7 "Language-Team: Lester Chan <gamerz84@hotmail.com>\n" wp-polls/trunk/readme.html
r21734 r21801 289 289 <strong>Version 2.22 (01-01-2008)</strong> 290 290 <ul> 291 <li>NEW: Use date_i18n() For Localizing Date</li>292 291 <li>NEW: Use number_format_i18n() Instead</li> 293 292 <li>FIXED: number_format() Not Used In Polls Archive</li>
