🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-07 13:21:33 | PHP 8.2.32
📂
/ (Root)
/
home
/
eliteewa
/
public_html
/
wp-content
/
themes
/
blocksy
/
static
/
js
/
options
/
options
📍 /home/eliteewa/public_html/wp-content/themes/blocksy/static/js/options/options
🔄 Refresh
✏️
Editing: date-time-picker.js
Writable
import { createElement, Component } from '@wordpress/element' import { DateTimePicker } from '@wordpress/components' import { __experimentalGetSettings } from '@wordpress/date' const LocalDateTimePicker = ({ value, onChange }) => { const settings = __experimentalGetSettings() const is12HourTime = /a(?!\\)/i.test( settings.formats.time .toLowerCase() // Test only the lower case a .replace(/\\\\/g, '') // Replace "//" with empty strings .split('') .reverse() .join('') // Reverse the string and test for "a" not followed by a slash ) return ( <div className="ct-date-time-picker"> <DateTimePicker currentDate={value ? value : new Date()} onChange={(date) => { onChange(date) }} is12Hour={is12HourTime} /> </div> ) } export default LocalDateTimePicker
💾 Save Changes
❌ Cancel