tracker issue : CF-4156896

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

[ANeff] Wishlist for: SetTimeZone(String timezone)

| View in Tracker

Status/Resolution/Reason: Needs Review//

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 05/24/2016

Components: Wishlist

Versions: 2016

Failure Type: Enhancement Request

Found In Build/Fixed In Build: CF2016_Final /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Win All

Vote Count: 4

Currently, CF defaults to OS's time zone or JVM arg -Duser.timezone.

We should be able to specify time zone at app-level. Suggestion: SetTimeZone(String timezone).

We've discussed this for years. Multiple tickets have been filed in various trackers.

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

Watson Bug ID:	4156896

External Customer Info:
External Company:  
External Customer Name: Aaron Neff
External Customer Email:

Attachments:

Comments:

Ran into this before. I had to build in offsets into the application.
Comment by External U.
2660 | May 24, 2016 11:32:13 AM GMT
History: https://tracker.adobe.com/#/view/CF-3035908 (we asked for it in 2008) https://tracker.adobe.com/#/view/CF-3571032 (we asked for it in 2013) We discussed it in multiple PRs. Lucee already has it: - GetTimeZoneInfo( [ timezone [, locale ] ] ) (see http://docs.lucee.org/reference/functions/gettimezoneinfo.html) - SetTimeZone( timezone ) (see http://docs.lucee.org/reference/functions/settimezone.html) - GetTimeZone( ) (see http://docs.lucee.org/reference/functions/gettimezone.html) And it works: https://trycf.com/gist/b181f3ac64a4b97a31b544f9f897d1e1/lucee5?theme=monokai Why is Lucee leading the way here? Aether, isn't it _time_ CF stops deferring this? :) +1 also for THIS.timeZone (to set time zone as a per-app setting). Adobe, if this has already been deferred for Aether, I hope you'd please reconsider. Thanks!, -Aaron
Comment by Aaron N.
2661 | June 09, 2017 06:24:29 AM GMT
Psst: And please add proper support for milliseconds ;)
Comment by Aaron N.
2662 | June 09, 2017 06:27:19 AM GMT
Please see my Dec 16, 2008 comment here: http://forta.com/blog/index.cfm/2008/12/14/ColdFusion-Per-Application-Settings-v2 ctrl+f for: "this.timezone"
Comment by Aaron N.
2663 | June 09, 2017 06:35:15 AM GMT
What does it take?
Comment by Aaron N.
29497 | August 15, 2018 11:17:57 PM GMT