tracker issue : CF-4126734

select a category, or use search below
(searches all categories and all time range)
Title:

TimeFormat ZZZ Mask for Default Time Zone

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Travis Walters / Travis Walters (Travis Walters)

Created: 03/09/2016

Components: Language, Functions

Versions: 2016

Failure Type: Enhancement Request

Found In Build/Fixed In Build: Alpha_v12 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Win All

Vote Count: 2

The "long" mask returns a time such as "2:34:55 PM EST", which includes a three letter time zone that corresponds to the timezone of the server (as far as I know). According to the documentation that I am looking at, there is no way to easily retrieve the default timezone with a mask that would use a 24-hour clock. 

It would be nice to do this: "HH:nn:ss zzz" as in "14:32:54 EST" or use "hh:nn:ss tt zzz" as an alternative to "long" and "full".

By the way, the link (https://wikidocs.adobe.com/wiki/display/coldfusionen/TimeFormat) states that the mm mask is deprecated but the median mask still references in the text "medium: equivalent to h:mm:ss tt".

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4126734

External Customer Info:
External Company:  
External Customer Name: Travis Walters
External Customer Email: TWALTERS84@HOTMAIL.COM
External Test Config:

Attachments:

Comments:

Adding BUG AUDIT TRAIL ********action: updated fieldName: Status newValue: Fixed oldValue: ToTest oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-11-03 17:59:24.0 action: updated fieldName: State newValue: Closed oldValue: Open oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-11-03 17:59:24.0 action: updated fieldName: Date Fixed newValue: 2015-11-03 09:59:24.0 oldValue: Blank oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-11-03 17:59:24.0 action: updated fieldName: Fixed By newValue: pnayak oldValue: Blank oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-11-03 17:59:24.0 action: updated fieldName: Date Closed newValue: 2015-11-03 09:59:24.0 oldValue: Blank oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-11-03 17:59:24.0 action: updated fieldName: Closed By newValue: pnayak oldValue: Blank oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-11-03 17:59:24.0 action: updated fieldName: Owner newValue: Blank oldValue: pnayak oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-11-03 17:59:24.0 action: updated fieldName: Reason newValue: Blank oldValue: AsDesigned oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-11-03 17:59:24.0 action: updated fieldName: Reason newValue: AsDesigned oldValue: HaveNewInfo oprid: siddhart recordName: RQ_DEFECT timpestamp: 2015-11-03 06:33:44.0 action: updated fieldName: Owner newValue: pnayak oldValue: siddhart oprid: siddhart recordName: RQ_DEFECT timpestamp: 2015-11-03 06:33:44.0 action: updated fieldName: Status newValue: ToTest oldValue: ToFix oprid: siddhart recordName: RQ_DEFECT timpestamp: 2015-11-03 06:33:44.0 action: updated fieldName: Reason newValue: HaveNewInfo oldValue: Fixed oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-11-02 17:32:11.0 action: updated fieldName: Status newValue: ToFix oldValue: ToTest oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-11-02 17:32:11.0 action: updated fieldName: Owner newValue: siddhart oldValue: pnayak oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-11-02 17:32:11.0 action: updated fieldName: Fixed By newValue: Blank oldValue: siddhart oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-11-02 17:32:11.0 action: updated fieldName: Date Fixed newValue: null oldValue: 30-OCT-15 12.51.59.000000000 AM oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-11-02 17:32:11.0 action: updated fieldName: Date Fixed newValue: 2015-10-30 00:51:59.0 oldValue: Blank oprid: siddhart recordName: RQ_DEFECT timpestamp: 2015-10-30 07:51:59.0 action: updated fieldName: Reason newValue: Fixed oldValue: Blank oprid: siddhart recordName: RQ_DEFECT timpestamp: 2015-10-30 07:51:59.0 action: updated fieldName: Status newValue: ToTest oldValue: ToFix oprid: siddhart recordName: RQ_DEFECT timpestamp: 2015-10-30 07:51:59.0 action: updated fieldName: Fixed By newValue: siddhart oldValue: Blank oprid: siddhart recordName: RQ_DEFECT timpestamp: 2015-10-30 07:51:59.0 action: updated fieldName: Owner newValue: pnayak oldValue: siddhart oprid: siddhart recordName: RQ_DEFECT timpestamp: 2015-10-30 07:51:59.0 action: updated fieldName: Changelist newValue: 296191 oldValue: Blank oprid: siddhart recordName: RQ_DEFECT timpestamp: 2015-10-30 07:51:59.0 action: updated fieldName: Owner newValue: siddhart oldValue: himar oprid: rukumar recordName: RQ_DEFECT timpestamp: 2015-10-27 06:52:36.0 action: updated fieldName: Dev Assigned newValue: siddhart oldValue: himar oprid: rukumar recordName: RQ_DEFECT timpestamp: 2015-10-27 06:52:36.0 action: added fieldName: Vote Type newValue: BETA oldValue: Blank oprid: prerelease recordName: AD_DEFECT_VOTE timpestamp: 2015-09-27 04:50:03.0 action: updated fieldName: Dev Assigned newValue: himar oldValue: mchandna oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-09-08 09:26:30.0 action: updated fieldName: Priority newValue: 2 oldValue: 0 oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-09-08 09:26:30.0 action: updated fieldName: Owner newValue: himar oldValue: mchandna oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-09-08 09:26:30.0 action: updated fieldName: Fix By Milestone newValue: Beta oldValue: Blank oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-09-08 09:26:06.0 action: updated fieldName: Status newValue: ToFix oldValue: NeedsReview oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-09-08 09:26:06.0 action: updated fieldName: Reason newValue: Blank oldValue: Blank oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-09-08 09:26:06.0 action: updated fieldName: Owner newValue: mchandna oldValue: rukumar oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-09-08 09:26:06.0 action: updated fieldName: Fix By Product Milestone newValue: Beta oldValue: Blank oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-09-08 09:26:06.0 action: added fieldName: Vote Type newValue: BETA oldValue: Blank oprid: prerelease recordName: AD_DEFECT_VOTE timpestamp: 2015-07-14 13:13:52.0 action: updated fieldName: Reason newValue: Blank oldValue: Blank oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-07-13 18:58:37.0 action: updated fieldName: Status newValue: NeedsReview oldValue: Unverified oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-07-13 18:58:37.0 action: updated fieldName: Owner newValue: rukumar oldValue: pnayak oprid: pnayak recordName: RQ_DEFECT timpestamp: 2015-07-13 18:58:37.0
Comment by CFwatson U.
3352 | March 09, 2016 04:51:15 AM GMT
+1 - The workaround produces the expected result. I agree that the timezone should be implemented as the format mask "zzz".
Vote by External U.
3354 | March 09, 2016 04:51:17 AM GMT
+1 Form Errors: Vote comment is required and must be at least 25 characters in length.
Vote by External U.
3355 | March 09, 2016 04:51:19 AM GMT
Added By: PreRelease User User Name:Aaron Neff Note Added: I see that masks z, Z, and X are supported and each display the proper format. Nice, they should be documented too. Thanks!, -Aaron Date Added :2015-12-21 01:49:34.0 Added By: PreRelease User User Name:Travis Walters Note Added: Yes, that is the end result I am looking for and I realize that there are different ways to achieve it - just seems simpler though if we could have a zzz mask in the TimeFormat function itself. Might make life easier for a few developers out there that need 24-hour based clocks. Date Added :2015-07-14 00:04:06.0 Added By:pnayak Note Added: Travis, Can you check if the following workaround suites your purpose. <cfscript> date = createObject( "java", "java.util.Date" ); dt_format = createObject( "java", "java.text.SimpleDateFormat"); dt_format = dt_format.init("zzz"); tm_zone = dt_format.format(date.clone()); writeoutput("time in long and zone: " & TimeFormat(now(), "HH:nn:ss") & " " & tm_zone); </cfscript> Date Added :2015-07-13 18:50:52.0 Added By: PreRelease User User Name:Travis Walters Note Added: Entered Feature. Date Added :2015-07-13 11:05:24.0
Comment by CFwatson U.
3353 | March 09, 2016 04:51:22 AM GMT