#30717 closed defect (bug) (fixed)
Missing format for last update timestamp
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.2 | Priority: | normal |
| Severity: | normal | Version: | 2.7 |
| Component: | I18N | Keywords: | has-patch needs-testing |
| Focuses: | Cc: |
Description
$plugin['last_updated'] returns for example following date 2014-11-14 4:17pm GMT.
It should be formatted a little or at least allowing custom format for localized versions, I guess...
Attachments (3)
Change History (11)
#1
@
11 years ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to Future Release
- Version changed from trunk to 2.7
#4
@
11 years ago
get_option( 'date_format' ) just returns the date. We could probably use __( 'M j, Y @ G:i' ), the same format we use for revisions and in the Publish box. See 30717.patch.
#5
follow-up:
↓ 7
@
11 years ago
How about get_option( 'date_format' ) . ' ' . get_option( 'time_format' ) or get_option( 'date_format' ) . ' @ ' . get_option( 'time_format' )? This would keep the date/time format dynamic, so it would appear in the selected format. Attaching a patch.
#6
@
11 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 31055:
#7
in reply to:
↑ 5
@
11 years ago
Replying to tyxla:
How about
get_option( 'date_format' ) . ' ' . get_option( 'time_format' )orget_option( 'date_format' ) . ' @ ' . get_option( 'time_format' )? This would keep the date/time format dynamic, so it would appear in the selected format. Attaching a patch.
Sorry, didn't see the latest patch. ' @ ' would need to be localizable too, so reusing the format we already use in other places seems more consistent to me.
The
$last_updateddate in thetitleattribute will now be displayed in the installation local date format (as specified in Settings -> General).