Spec-Zone.ru › ColdFusion

setTimeZone

Change the timezone definition for the current request

setTimezone(timezone) → returns string

  • CF2021+
  • Lucee
  • BL 1.0.0+
  • See Also: getTimezone getTimezoneInfo setLocale

    Argument Reference

    timezone string
    Required

    The timezone to set to.

    Examples
    Sample code invoking the setTimeZone function

    Set the current Timezone to CET

    setTimezone("CET");
    writeoutput(getTimezoneInfo().timezone);

    Expected Result: CET

    © 2012–present Foundeo, Inc. and the CFDocs contributors.
    Licensed under the MIT License.
    ColdFusion is a trademark of Adobe Systems Incorporated.
    https://cfdocs.org/settimezone

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API