for what its worth the addition can be implemented with adding…
on line 83 of s2member/src/includes/classes/sc-gets-in.inc.php
from
$get = constant($attr['constant']);
to
$get = constant($attr['constant']);
if (preg_match('/time$/i', strtolower($attr['constant'])) && $attr['date_format'])
if ((is_numeric($get) && strlen($get) === 10) || ($get = strtotime($get))) // Timestamp?
{
if ($attr['date_format'] === 'timestamp')
$get = (string)$get; // No change.
else if ($attr['date_format'] === 'default')
$get = date(get_option('date_format'), (int)$get);
else $get = date($attr['date_format'], (int)$get);
}
which adds the following to s2Get
[s2Get constant=“S2MEMBER_CURRENT_USER_REGISTRATION_TIME” date_format=“M jS, Y, g:i a T” /]
until then replace the previous function with this one as it will allow you to defined the date format
function custom_registration_date_shortcode( $atts ) {
if ( ! is_user_logged_in() ) {
return '';
}
// Define default attributes
$atts = shortcode_atts(
array(
'date_format' => 'm/d/Y', // Default format
),
$atts,
'registration_date'
);
$user = wp_get_current_user();
$registered = strtotime( $user->user_registered );
// Use the provided format (sanitized via shortcode_atts)
return date( $atts['date_format'], $registered );
}