Changeset 3669018
- Timestamp:
- 08/27/2026 02:09:08 PM (2 months ago)
- Location:
- nepali-bs-date-tools
- Files:
-
- 9 added
- 2 edited
-
tags/1.0.0/nepali-bs-date-tools.php (modified) (2 diffs)
-
tags/1.0.1 (added)
-
tags/1.0.1/bs_dateClass.php (added)
-
tags/1.0.1/bs_date_admin.php (added)
-
tags/1.0.1/languages (added)
-
tags/1.0.1/languages/ne_NP.mo (added)
-
tags/1.0.1/languages/ne_NP.po (added)
-
tags/1.0.1/languages/nepali-bs-date-tools.pot (added)
-
tags/1.0.1/nepali-bs-date-tools.php (added)
-
tags/1.0.1/readme.txt (added)
-
trunk/nepali-bs-date-tools.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nepali-bs-date-tools/tags/1.0.0/nepali-bs-date-tools.php
r3595159 r3669018 58 58 59 59 global $NBSD_Dateplugin; 60 return $NBSD_Dateplugin->NBSD_convertTonepalinumber(human_time_diff( get_the_time('U', $post),current_time('timestamp')) . ' ago'); 60 $timestamp = get_post_timestamp($post); 61 return $NBSD_Dateplugin->NBSD_convertTonepalinumber(human_time_diff( $timestamp,current_time('timestamp')) . ' ago'); 61 62 } 62 63 … … 152 153 if ( is_admin() ) return $date; 153 154 155 if (!$post instanceof WP_Post) return $date; 156 154 157 if ( get_post_type($post) !== 'post' ) return $date; 155 158 -
nepali-bs-date-tools/trunk/nepali-bs-date-tools.php
r3595159 r3669018 4 4 * Plugin URI: https://wordpress.org/plugins/nepali-bs-date-tools 5 5 * Description: Nepali BS Date Tools plugin converts post date into Nepali Bikram Sambat (BS) dates automatically.It displays today date in Nepali BS date and converts Ad to BS and BS to AD dates. 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Author: Manjil Shrestha 8 8 * License: GPLv2 or later … … 58 58 59 59 global $NBSD_Dateplugin; 60 return $NBSD_Dateplugin->NBSD_convertTonepalinumber(human_time_diff( get_the_time('U', $post),current_time('timestamp')) . ' ago'); 60 $timestamp = get_post_timestamp($post); 61 return $NBSD_Dateplugin->NBSD_convertTonepalinumber(human_time_diff( $timestamp,current_time('timestamp')) . ' ago'); 61 62 } 62 63 … … 152 153 if ( is_admin() ) return $date; 153 154 155 if (!$post instanceof WP_Post) return $date; 156 154 157 if ( get_post_type($post) !== 'post' ) return $date; 155 158
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)