[Skip to main content](#vessel-content)

#   Custom field date not showing correcly (-1 day)

##

- **[allbs](/forum/user/40031-allbs "View allbs's Profile")**
- [![allbs's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40031-allbs "View allbs's Profile") Topic Author
- [ Offline](/forum/user/40031-allbs)

Less More

- Posts: 59
- Thank you received: 2
-
-

5 years 4 weeks ago [\#336637](#336637) by [allbs](/forum/user/40031-allbs "View allbs's Profile")  *[Custom field date not showing correcly (-1 day)](/forum/35-orders-management/903382-custom-field-date-not-showing-correcly-1-day#336637 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.10.0 -- PHP version -- : 7.4.16 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : custom field date not showing correctly  Hi, we have a custom date field (Advanced date picker ) that stores a value selected on a calendar  the stored value is ok but when it shows on the email loaded via preload  $content = ob&#95;get&#95;clean(); $vars = trim($content);  its showing 1 day before on dates selected on November.  is it because of timechange happening this weekend?  thank you")* was created by *[allbs](/forum/user/40031-allbs "View allbs's Profile")*

-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.10.0
-- PHP version -- : 7.4.16
-- Browser(s) name and version -- : Firefox
-- Error-message(debug-mod must be tuned on) -- : custom field date not showing correctly

Hi,
we have a custom date field (Advanced date picker ) that stores a value selected on a calendar

the stored value is ok but when it shows on the email loaded via preload

$content = ob_get_clean();
$vars = trim($content);

its showing 1 day before on dates selected on November.

is it because of timechange happening this weekend?

thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMzM4Mi1jdXN0b20tZmllbGQtZGF0ZS1ub3Qtc2hvd2luZy1jb3JyZWNseS0xLWRheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

5 years 4 weeks ago [\#336650](#336650) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom field date not showing correcly (-1 day)](/forum/35-orders-management/903382-custom-field-date-not-showing-correcly-1-day#336650 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.10.0 -- PHP version -- : 7.4.16 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : custom field date not showing correctly  Hi, we have a custom date field (Advanced date picker ) that stores a value selected on a calendar  the stored value is ok but when it shows on the email loaded via preload  $content = ob&#95;get&#95;clean(); $vars = trim($content);  its showing 1 day before on dates selected on November.  is it because of timechange happening this weekend?  thank you")*

Hi,

By default the time of the day selected in a custom field of the time advanced date picker is midnight.
So if you have a problem with the timezone configured in your Joomla configuration or PHP, etc it's possible that it shifts to the day before.
To counter than, we have a setting in the "hikashop advanced date picker field plugin" that you can enable so that it sets the hour as noon instead of midnight for the selected days. That way, even if there is an error of 1 or 2 hours with the timezones, you'll still get the correct dates.
You can find that setting by editing the plugin via the Joomla plugins manager.
Note also that it will only help for newly saved dates. It won't help for existing ones.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMzM4Mi1jdXN0b20tZmllbGQtZGF0ZS1ub3Qtc2hvd2luZy1jb3JyZWNseS0xLWRheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.045 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
