Jump to content
Dirty Butter

UTC offset vs Timezone setting?

Recommended Posts

Posted (edited)

I normally use the Timezone setting to Ameria/Chicago in the Store Settings Advanced tab. But I noticed the time was wrong on our website (our server is in Europe). So I set the UTC Offset to -6 and now the store time is right.

Is this a bug in CC 6.2.6 that the America/Chicago setting was not sufficient to show the correct store time? Or just a misunderstanding on my part that the UTC Offset also needed to be set....

Edited by Dirty Butter

Share this post


Link to post
Share on other sites

I read through that whole discussion and understood very little of it. So I take it this is not a bug, but just my lack of understanding. I have it showing what I want now. -6 UTC and America/Chicago gives me accurate time/date in Admin for when a product is updated. And it gives me accurate time/date on the Timestamp edit you made for my storefront homepage to show when a product was listed and another piece of code that shows our total product listings per today's date.

Thanks as always. I appreciate your efforts to teach.

Share this post


Link to post
Share on other sites

I've just realized that my -6 UTC and Chicago/America only give the desired time on the storefront IF I am logged in as Admin. If I log out and refresh with FireFox or Chrome, the offset is ignored on the storefront.

I'm using your code on the Latest Products on the Homepage:

Added  {formatTime(strtotime($product.updated))}

Is there a way to keep the date and not show the time?

Share this post


Link to post
Share on other sites

You can try:

{formatTime(strtotime($product.updated),"%D")}

Share this post


Link to post
Share on other sites

No - not even when logged in as admin. It's not a crucial thing. It just makes it look like I've added listings in the middle of the night (elf is busy)  ;)

 

AH - will work OK - today's listings show time, BUT all but last of yesterday's listings only show the date. THANK YOU!

Edited by Dirty Butter

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...