Map for illustrative purposes only - the WSM option gives a drop down with the more usual timezones (UTC, EST, CET, etc).
##Overview
The web never goes to sleep, it works all hours of the day and night and, more importantly, never stop selling your products. However, your store employees do need to sleep occasionally and sometimes it is useful to associate your web store with a time zone.
By associating your store with a time zone you can display a store time on a page or define an hour before which you offer same day shipping.
##WebStore Manager Option
We have added an option in the shipping options in WebStore Manager (WSM) that allows you to select a city in your time zone. This option will take daylight saving hour into account (unless your store is in Arizona!).
##NitroScript Tags Available
A series of new tags are now available that do exactly what they say on the tin:
-
{ns:printStoreTime}
Available in any template.
This will output the time in the store in this format:
07:43:27 AM -
{ns:printStoreDate}
Available in any template.
This will output the date in the store in this format:
Thursday 29th of January 2015 -
{ns:printStoreDateTime}
Available in any template.
This will output the date in the store in this format:
Thursday 29th of January 2015 07:43:27 AM
New NitroScript tag {printStoreTimeComponent()}
This new tag allows you to request any element of the store date/ time.
{printStoreTimeComponent(STRING)}
To use: replace the word STRING with a string of codes that you would like to see. For example, say I wanted the current day of the month I would look through the codes in the links below to find the right code for what I am looking for. In this case I could go {printStoreTimeComponent("dd")}
which would return 18 as it is the 18th day of June as I right this.
You can add several codes together with punctuation like this
{printStoreTimeComponent("d/m/Y")}
Which would return 18/06/2015
- Acceptable time formats
PHP: Time Formats - Manual Acceptable date
formats PHP: Date Formats - Manual Compound
formats PHP: Compound Formats - Manual