Events.Item.SetTimeZone
-----------------------

Sets time zone for this item.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Events](component_Events.md) | [6.2](newinversion62.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "Events.Item.SetTimeZone"; EKCalendarItem; TimeZone ) 

**MBS**( **"Events.Item.SetTimeZone";** /\* Sets time zone for this item. \*/  
**$EKCalendarItem**; /\* The reference to the calendar item: an event or reminder.e.g. $item \*/   
**$TimeZone**) /\* The new Timezone.  
Value of "System" sets to system time zone.  
Value of "Default" sets to default time zone.e.g. "GMT" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| EKCalendarItem | The reference to the calendar item: an event or reminder. | $item |
| TimeZone | The new Timezone.   Value of "System" sets to system time zone.   Value of "Default" sets to default time zone. | "GMT" |

### Result

Returns OK or error.

### Description

Sets time zone for this item.  
We specify time zone with a name used for them by Apple in the system preferences. e.g. "America/Chicago".  
### Examples

Set time zone:

 If \[IsEmpty(Events Create Reminder::TimeZone )\]  
 #we don't set it  
Else  
 Set Variable \[$r ; Value:MBS ( "Events.Item.SetTimezone"; $reminder ; Events Create Reminder::TimeZone )\]  
End If  
Set time zone to London:

 Let ( \[  
it = MBS ("[Events.NewEvent](EventsNewEvent.md)");  
r = MBS ("Events.Item.SetTimeZone"; it; "Europe/London");  
g = MBS ("[Events.Item.GetTimeZone](EventsItemGetTimeZone.md)"; it)  
  
\]; it &amp; ¶ &amp; r &amp; ¶ &amp; g )  
<small>  
Example result:   
18A12594-0C4C-4BCE-8865-E36E2E044503  
OK  
Europe/London</small>### See also

- [Events.Item.GetTimeZone](EventsItemGetTimeZone.md)
- [Events.Item.SetTitle](EventsItemSetTitle.md)
- [Events.NewEvent](EventsNewEvent.md)
- [Events.NewReminder](EventsNewReminder.md)
- [Events.SaveReminder](EventsSaveReminder.md)

### Release notes

- **Version 14.1**
    - Fixed bug in [Events.Item.SetTimeZone](https://www.mbsplugins.eu/EventsItemSetTimeZone.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin, version 14.1pr2](https://www.mbsplugins.de/archive/2024-02-14/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 10th March 2016 , last changed 24th January 2025

  
[Events.Item.SetNotes](EventsItemSetNotes.md) - [Events.Item.SetTitle](EventsItemSetTitle.md)

[HTML Version](EventsItemSetTimeZone.shtml)