TIME of for ${note.CreatedDate} variable

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
bugman
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Tue Mar 19, 2013 8:53 am

TIME of for ${note.CreatedDate} variable

Post by bugman » Thu May 31, 2018 11:24 pm

When a note is added by merchant, it sends us an email using the standard "Note Added By Merchant" template.

The email this template creates & sends is time stamped correctly, and the record of the note creation that appears in the NOTES tab for the order itself is time stamped correctly, but the time stamp mentioned inside the email (the one that SAYS when this note was created) - which is generated with the variable "${note.CreatedDate}", is 4 hours AHEAD of current time.

I am in eastern time zone... GMT would be 4 hrs ahead of me were it not for us currently being on daylight savings time, but I'm guessing still that for some reason this variable is pulling GMT??

Any thoughts on how to resolve this are greatly appreciated!
Thanks!

--
bugman
AbleCommerce for ASP.NET
VERSION: 7.0.90.8302
Release Label: GoldR10

bugman
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Tue Mar 19, 2013 8:53 am

Re: TIME of for ${note.CreatedDate} variable

Post by bugman » Fri Jun 08, 2018 4:01 am

BUMP!... anybody???
Thanks!

--
bugman
AbleCommerce for ASP.NET
VERSION: 7.0.90.8302
Release Label: GoldR10

jguengerich
Commodore (COMO)
Commodore (COMO)
Posts: 436
Joined: Tue May 07, 2013 1:59 pm

Re: TIME of for ${note.CreatedDate} variable

Post by jguengerich » Fri Jun 08, 2018 5:46 am

I haven't tried it in the template you are asking about, but some of the other templates use

Code: Select all

.ToString("G")
after a date field. For example, the Customer Order Notification template has

Code: Select all

$order.OrderDate.ToString("G")
, and the time in the generated email matches my store time. Perhaps that will work for the Note Added tempates?

Also, I think the TimeZone Offset setting for the store must be changed manually when DST starts/ends. Or at least it did in earlier versions of GOLD, not sure if that has changed or not.
Jay

bugman
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Tue Mar 19, 2013 8:53 am

Re: TIME of for ${note.CreatedDate} variable

Post by bugman » Fri Jun 08, 2018 5:56 am

Thanks for the reply - I will give that a look.

And yes, the DST still has to be changed manually.
Thanks!

--
bugman
AbleCommerce for ASP.NET
VERSION: 7.0.90.8302
Release Label: GoldR10

bugman
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Tue Mar 19, 2013 8:53 am

Re: TIME of for ${note.CreatedDate} variable

Post by bugman » Tue Sep 11, 2018 6:52 am

Thanks for the suggestion, but that did not work for me.

Any other ideas are much appreciated!
Thanks!

--
bugman
AbleCommerce for ASP.NET
VERSION: 7.0.90.8302
Release Label: GoldR10

Post Reply