Advertisement:

Author Topic: a time bug?  (Read 1072 times)

blue

  • Newbie
  • *
  • Posts: 1
a time bug?
« on: October 25, 2012, 03:07:35 pm »
Hi,

I think there is a bug at line 28 of "oc-includes\osclass\utils.php".

Code: [Select]
$now       = date("Ymdhis");
The date format "Ymdhis" 12-hour format different with database.
It makes item expired or not unable to judge correctly, so maybe it should be...

Code: [Select]
$now       = date("YmdHis");
My English is pretty basic, please don't mind. :-[

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: a time bug?
« Reply #1 on: October 31, 2012, 12:44:07 pm »
Hi blue,

Thanks for the help, the error have been already fixed on both, hotfixes and develop branches, : https://github.com/osclass/OSClass/commit/09be9b787721c8fede927daa492618a66ace5931
Thanks!