Theme editor

User Date/Time Format Settings

User Date/Time Format Settings

User Date/Time Format Settings 1.1.1

XF 2.3 Addons · by Staraddons · StarAddons Verified Vendor
0 Downloads 16 Views 1 Version
Allows users to override the language-level date and time format settings.
Price
Free
Available
Download

Overview Version (1) Discussion (1)

  • User Date/Time Format Settings
    User Date/Time Format Settings
    Allows users to override the language-level date and time format settings.
    date format
    time format
    About this resource
    Allows users to override the language-level date and time format settings.

    Adds two new User Custom Fields:
    1. Preferred Date Format
      • All (non-custom) formats from the admin panel
      • Full-year m/d/y and d/m/y formats
      • ISO 8601 YYYY-MM-DD format
    2. Preferred Time Format
      • 12 and 24 hour formats
    They are both optional and apply individually. A user who does not select an option will get the setting defined in their selected language for that field.

    If you do not wish to allow selection of both options then the relevant custom field can be disabled or removed. In addition, specific options can be removed from the user fields as well without causing problems.

    To add new options, the code of the extension will need to be edited as the list of potential format strings is hardcoded. This is due to how multiselect options function, the format string can't be the option value directly and thus needs an option to format string mapping.

    Both fields default to on for user registration, as Date/Time formats can be very important to users. This can be safely toggled off in the custom user field settings if that isn't desired.

    Screenshots of the only user-facing UI, the two added custom fields:
    User Date/Time Format Settings
  • Version
    1.1.1 Stable Available Nov 16, 2025 · 0
    File size: 14.9 KB
    SHA-256: 3dedb88dd3bee18d65480b964d1b2d43d24283ccb815a02a236c604cfbffca34
    SHA-256 verified Package valid Compatibility checked Last verified:
    Allows users to override the language-level date and time format settings.

    Adds two new User Custom Fields:
    1. Preferred Date Format
      • All (non-custom) formats from the admin panel
      • Full-year m/d/y and d/m/y formats
      • ISO 8601 YYYY-MM-DD format
    2. Preferred Time Format
      • 12 and 24 hour formats
    They are both optional and apply individually. A user who does not select an option will get the setting defined in their selected language for that field.

    If you do not wish to allow selection of both options then the relevant custom field can be disabled or removed. In addition, specific options can be removed from the user fields as well without causing problems.

    To add new options, the code of the extension will need to be edited as the list of potential format strings is hardcoded. This is due to how multiselect options function, the format string can't be the option value directly and thus needs an option to format string mapping.

    Both fields default to on for user registration, as Date/Time formats can be very important to users. This can be safely toggled off in the custom user field settings if that isn't desired.

    Screenshots of the only user-facing UI, the two added custom fields:
    View attachment 1424
  • Discussion

    This resource has a discussion thread on the forum where you can ask questions, report issues, and talk with the author and other users.

    Join the discussion (1)

Resource information
Category XF 2.3 Addons
Author Staraddons
Date Nov 16, 2025
Latest version 1.1.1
SHA-256 3dedb88dd3bee18d65480b964d1b2d43d24283ccb815a02a236c604cfbffca34
Security
File integrity SHA-256 verified
SHA-256
3dedb88dd3bee18d65480b964d1b2d43d24283ccb815a02a236c604cfbffca34
How to verify this file
Statistics
Views 16
Downloads 0
Version 1
Developer
Staraddons
Resource author
More resources
Back
Top