- Article History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Email to a Friend
- Printer Friendly Page
- Alert a Moderator
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Alert a Moderator
Guest self registration issues when the browser language is non English
Guest self registration issues when the browser language is non English
Issue in displaying date/time fields (for eg., expire_time) in receipt page when guest tries to register for an account using non English web-browser.
Example:
Diagnostics:
When the date/time is displayed in the receipt page, browsers with other language cannot understand the format "longdate".
Solution
To fix this we can display the date/time in standard format using the steps provided below.
Navigate to ClearPass Guest >> Configuration >> Pages >> Guest Self-Registrations >> select the self-registration page >> Edit >> Receipt Page >> Form and edit the fields(eg: start_time and expire_time).
You will find the "Static Display Arguments" configured as “longdate?”, which would display the expire time as highlited below and may cause issue when you are using non-english browser for self-registration.
Modify the "Static Display Arguments" value to the format “%Y-%m-%d %h:%M?:” to address the issue.
The date and time for activation/expiry will be displayed as shown below when using the above format and works with all the browser languages.
There are different types of NwaDateFormat(date/time formats) available in ClearPass and one of them could also replace longdate under "Static Display Arguments" as required.
The list is as follows :
Preset Name |
Date/ Time Format |
Example |
hhmmss |
%H%M%S |
141345 |
hh:mm:ss |
%H:%M:%S |
14:13:45 |
iso8601 |
%Y%m%d |
20080407 |
iso8601t |
%Y%m%d%H%M%S |
20080407141345 |
iso-8601 |
%Y-%m-%d |
2008-04-07 |
iso-8601t |
%Y-%m-%d %H:%M:%S |
2008-04-07 14:13:45 |
Longdate |
%A, %d %B %Y, %I:%M %p |
Monday, 07 April 2008, 2:13 PM |
rfc822 |
%a, %d %b %Y %H:%M:%S %Z |
Mon, 07 Apr 2008 14:13:45 EST |
Displaytime |
%l:%M %p |
2:13 PM |
Recent |
|
2 minutes ago |
The % items on the right hand side are the same as those supported by the php function strftime().
The string “?:”, if present will return the string following the “?:” if the time value is 0. Otherwise, the format string up to the “?:” is used.