logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
judy at Web2Market  
#1 Posted : Tuesday, June 8, 2021 10:21:03 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 286

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
A site reported this, so I tested on a local 9.0.4 site with no customizations in the admin.
Set an availability date on a product in the low inventory report. The date displays without a time after changing it.
Go to the edit product page for the same product and the dates shows a time, in my case it was 5:00PM but the client says it was 8:AM on his site. Change the date on the edit product page and click save. The date doesn't show a time. Reload the edit product page and it shows a time, in my case 12:00 AM.

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

shaharyar  
#2 Posted : Wednesday, June 9, 2021 4:00:13 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 703

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
I am able to reproduce the issue. I have registered the issue.

Thanks for identifying!
judy at Web2Market  
#3 Posted : Wednesday, June 30, 2021 9:37:30 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 286

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
Can you post a patch for this? It is causing issues for a merchant using 9.0.4.
Thanks
shaharyar  
#4 Posted : Thursday, July 1, 2021 4:12:29 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 703

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
To fix

1- Open the file E:\Workspace\AbleCommerce9\trunk\Website\Areas\Admin\Controllers\ProductController.cs
2- Search for
Code:
else editProductModel.AvailabilityDate = product.AvailabilityDate.HasValue ? product.AvailabilityDate.ToString() : string.Empty;

3- Replace with
Code:
else editProductModel.AvailabilityDate = product.AvailabilityDate.HasValue ? product.AvailabilityDate.Value.ToString("MM/dd/yyyy") : string.Empty;

4- You will need to compile the code
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.