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

#   After 2.6.2 update, Available From/To time problem

##

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

Less More

- Posts: 48
- Thank you received: 1
-
-

10 years 6 months ago [\#236937](#236937) by [Llarian](/forum/user/33731-llarian "View Llarian's Profile")  *[After 2.6.2 update, Available From/To time problem](/forum/25-install-update/883907-after-2-6-2-update-available-from-to-time-problem#236937 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1  Hello Hikashop!  We upgraded to 2.6.2, and run into an odd problem. Every time we save an item with the Available From and Available To fields set, the hour increments by 1!  I've attached two screenshots showing a before save and after save behavior.  We haven't changed anything else other than the upgrade recently. Any ideas?")* was created by *[Llarian](/forum/user/33731-llarian "View Llarian's Profile")*

-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.5.1

Hello Hikashop!

We upgraded to 2.6.2, and run into an odd problem. Every time we save an item with the Available From and Available To fields set, the hour increments by 1!

I've attached two screenshots showing a before save and after save behavior.

We haven't changed anything else other than the upgrade recently. Any ideas?

[ ![Screen&#95;Shot&#95;2016-04-15&#95;at&#95;1&#95;17&#95;03&#95;PM.png](/forum/attachment/30756) ](/forum/attachment/30756 "...1&#95;17&#95;03&#95;PM.png")

[ ![Screen&#95;Shot&#95;2016-04-15&#95;at&#95;1&#95;17&#95;06&#95;PM.png](/forum/attachment/30757) ](/forum/attachment/30757 "...1&#95;17&#95;06&#95;PM.png")

- [ ![Screen&#95;Shot&#95;2016-04-15&#95;at&#95;1&#95;17&#95;03&#95;PM.png](/forum/attachment/30756) ](/forum/attachment/30756 "...1&#95;17&#95;03&#95;PM.png") [ ](/forum/attachment/30756?download=1 "...1&#95;17&#95;03&#95;PM.png")
- [ ![Screen&#95;Shot&#95;2016-04-15&#95;at&#95;1&#95;17&#95;06&#95;PM.png](/forum/attachment/30757) ](/forum/attachment/30757 "...1&#95;17&#95;06&#95;PM.png") [ ](/forum/attachment/30757?download=1 "...1&#95;17&#95;06&#95;PM.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4MzkwNy1hZnRlci0yLTYtMi11cGRhdGUtYXZhaWxhYmxlLWZyb20tdG8tdGltZS1wcm9ibGVtP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14291
-
-

10 years 6 months ago [\#236977](#236977) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[After 2.6.2 update, Available From/To time problem](/forum/25-install-update/883907-after-2-6-2-update-available-from-to-time-problem#236977 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1  Hello Hikashop!  We upgraded to 2.6.2, and run into an odd problem. Every time we save an item with the Available From and Available To fields set, the hour increments by 1!  I've attached two screenshots showing a before save and after save behavior.  We haven't changed anything else other than the upgrade recently. Any ideas?")*

Hi,

We don't have the problem on our end.
It must be related to the timzone of your Joomla configuration, or your backend user account, or of your web server which isn't set properly. Please check them.

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

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

Less More

- Posts: 48
- Thank you received: 1
-
-

10 years 6 months ago [\#237045](#237045) by [Llarian](/forum/user/33731-llarian "View Llarian's Profile")  Replied by *[Llarian](/forum/user/33731-llarian "View Llarian's Profile")* on topic *[After 2.6.2 update, Available From/To time problem](/forum/25-install-update/883907-after-2-6-2-update-available-from-to-time-problem#237045 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1  Hello Hikashop!  We upgraded to 2.6.2, and run into an odd problem. Every time we save an item with the Available From and Available To fields set, the hour increments by 1!  I've attached two screenshots showing a before save and after save behavior.  We haven't changed anything else other than the upgrade recently. Any ideas?")*

> nicolas wrote: Hi,
>
> We don't have the problem on our end.
> It must be related to the timzone of your Joomla configuration, or your backend user account, or of your web server which isn't set properly. Please check them.

The Timezone for PHP, the server, Joomla, and the webserver user are universally set to America/Los_Angeles.

A little more info:

If I set JUST a "Available To" date and time, this does not happen.

When I set both Available From and Available To, the Hour for both increments by 1 on every save.

This didn't happen prior to upgrading to 2.6.2.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4MzkwNy1hZnRlci0yLTYtMi11cGRhdGUtYXZhaWxhYmxlLWZyb20tdG8tdGltZS1wcm9ibGVtP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14291
-
-

10 years 6 months ago [\#237052](#237052) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[After 2.6.2 update, Available From/To time problem](/forum/25-install-update/883907-after-2-6-2-update-available-from-to-time-problem#237052 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1  Hello Hikashop!  We upgraded to 2.6.2, and run into an odd problem. Every time we save an item with the Available From and Available To fields set, the hour increments by 1!  I've attached two screenshots showing a before save and after save behavior.  We haven't changed anything else other than the upgrade recently. Any ideas?")*

Hi,

I did try with both and didn't had the problem.
Could it be that you have some kind of mass actions enabled that would be triggered when the product is saved ?
Please check that via the menu System&gt;Mass actions.

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

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

Less More

- Posts: 48
- Thank you received: 1
-
-

10 years 6 months ago [\#237064](#237064) by [Llarian](/forum/user/33731-llarian "View Llarian's Profile")  Replied by *[Llarian](/forum/user/33731-llarian "View Llarian's Profile")* on topic *[After 2.6.2 update, Available From/To time problem](/forum/25-install-update/883907-after-2-6-2-update-available-from-to-time-problem#237064 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1  Hello Hikashop!  We upgraded to 2.6.2, and run into an odd problem. Every time we save an item with the Available From and Available To fields set, the hour increments by 1!  I've attached two screenshots showing a before save and after save behavior.  We haven't changed anything else other than the upgrade recently. Any ideas?")*

> nicolas wrote: Hi,
>
> I did try with both and didn't had the problem.
> Could it be that you have some kind of mass actions enabled that would be triggered when the product is saved ?
> Please check that via the menu System&gt;Mass actions.

The only published mass action we have is to force a taxability code in specific categories. I tried disabling it but it didn't have any effect on this behavior.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4MzkwNy1hZnRlci0yLTYtMi11cGRhdGUtYXZhaWxhYmxlLWZyb20tdG8tdGltZS1wcm9ibGVtP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14291
-
-

10 years 6 months ago [\#237142](#237142) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[After 2.6.2 update, Available From/To time problem](/forum/25-install-update/883907-after-2-6-2-update-available-from-to-time-problem#237142 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1  Hello Hikashop!  We upgraded to 2.6.2, and run into an odd problem. Every time we save an item with the Available From and Available To fields set, the hour increments by 1!  I've attached two screenshots showing a before save and after save behavior.  We haven't changed anything else other than the upgrade recently. Any ideas?")*

Hi,

I really don't see what it could be.
And you say that you have the problem only if you set both "from" and "to" dates ? If you set only the "from" or only the "to" you don't have the problem ?
I don't have any other ideas besides a mass action or a custom plugin.
If it was a timezone issue with the code of HikaShop, it should happen regardless of whether you would enter one or the other.

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

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

Less More

- Posts: 48
- Thank you received: 1
-
-

10 years 6 months ago [\#237251](#237251) by [Llarian](/forum/user/33731-llarian "View Llarian's Profile")  Replied by *[Llarian](/forum/user/33731-llarian "View Llarian's Profile")* on topic *[After 2.6.2 update, Available From/To time problem](/forum/25-install-update/883907-after-2-6-2-update-available-from-to-time-problem#237251 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1  Hello Hikashop!  We upgraded to 2.6.2, and run into an odd problem. Every time we save an item with the Available From and Available To fields set, the hour increments by 1!  I've attached two screenshots showing a before save and after save behavior.  We haven't changed anything else other than the upgrade recently. Any ideas?")*

> nicolas wrote: Hi,
>
> I really don't see what it could be.
> And you say that you have the problem only if you set both "from" and "to" dates ? If you set only the "from" or only the "to" you don't have the problem ?
> I don't have any other ideas besides a mass action or a custom plugin.
> If it was a timezone issue with the code of HikaShop, it should happen regardless of whether you would enter one or the other.

I agree, this is weird. It FEEL like a daylight savings time issue, but it only happens if both are set. For now, that's our workaround.

Could you point me at (roughly) where the localtime to unixtime conversion for product edit happens in the codebase? Would like to throw some debugging hooks in there to see if I can sort out what's going on.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4MzkwNy1hZnRlci0yLTYtMi11cGRhdGUtYXZhaWxhYmxlLWZyb20tdG8tdGltZS1wcm9ibGVtP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14291
-
-

10 years 6 months ago [\#237261](#237261) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[After 2.6.2 update, Available From/To time problem](/forum/25-install-update/883907-after-2-6-2-update-available-from-to-time-problem#237261 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1  Hello Hikashop!  We upgraded to 2.6.2, and run into an odd problem. Every time we save an item with the Available From and Available To fields set, the hour increments by 1!  I've attached two screenshots showing a before save and after save behavior.  We haven't changed anything else other than the upgrade recently. Any ideas?")*

Hi,

You want to check the functions hikashop_getDate and hikashop_getTime of the file administrator/components/com_hikashop/helpers/helper.php
One is used to convert the date you enter in the field into a unix timestamp in order to store it and the other is used to convert a stored unix timestamp into a date that will be display in the field.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4MzkwNy1hZnRlci0yLTYtMi11cGRhdGUtYXZhaWxhYmxlLWZyb20tdG8tdGltZS1wcm9ibGVtP3RtcGw9bWFya2Rvd24=) 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.073 seconds

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