Quality Code :: Always!

User Tools

Site Tools


aMember Plugins



aMember Date Plugin


This plugin performs two main functions, first it will display a date/time display in the ACP and secondly set the local time zone for a user


Current version download from License centre Click here


  • Download the current release
  • Unpack the zip file
  • Upload the 'upload.aMember' files to your aMember directory
  • Enable the plugin
  • Configure the settings as required


Pending a new integration system updates will be announced on the aMember forums, simply follow the installation instructions to update your version of date.

Settings & Configuration

  • Date display format :: Admin ACP date display formatted as per PHP strftime()
  • Enable User Option (non-JS) :: Toggle the user timezone processing (click save to register change)
    • Time Zone :: Default time zone to use for user if not set
  • Debug :: Generally only needed by JLogica staff for problem resolution

User TZ Profile

In order to allow your users to set their time zone you need to copy the Timezone brick into the Profile form in the ACP Forms Editor

User TZ run time

If enabled the user time zone will be set automatically in all aMember pages, for user pages use the following samples;

Using AM Lite

require_once __DIR__ . '/amember/library/Am/Lite.php';
$user = Am_Lite::getInstance()->getUser();
$tz = "UTC";        // Set to your preference for a default
if( Am_Lite::getInstance()->isLoggedIn() AND isset( $user['timezone'] ) AND in_array( $user['timezone'], timezone_identifiers_list() ) )
    $tz = $user['timezone'];
date_default_timezone_set( $tz );

Using Full Access

This code sample relates to v1.2 currently being worked on.
require_once __DIR__ . '/amember/bootstrap.php';


v1.1a 2018-06-30

  • Removed licensing code causing error on installation
  • Added option to toggle non-js user side processing
amember/date.txt · Last modified: 2018-08-13 02:24 by jenolan