Bug in tep_date_short when date format is y-m-d

Kestas <[email protected]> 31 Jul 2003 09:15:24 -0000
Newsgroups gmane.comp.web.oscommerce.devel
Message-ID <ca3215ed8219914180da392d9946ea8c@osCommerce-Forums>
This message was sent from: Development
http://forums.oscommerce.com/viewtopic.php?p=204939#204939
----------------------------------------------------------------

Bug in OSC 2.2 MS2 and MS1 previously reported [url]http://www.oscommerce.com/community/bugs,792[/url]. 
This is know PHP bug on win32 and some redhat linux.
Workaroud on this PHP bug don't work in function tep_date_short on general.php, when date format is y-m-d. This date format used in Lithuania.

I resolved this by change line about 584 in general.php from this:
  return ereg_replace('2037' . '$', $year, date(DATE_FORMAT, mktime($hour, $minute, $second, $month, $day, 2037)));

to this:
  return ereg_replace('2037' , $year, date(DATE_FORMAT, mktime($hour, $minute, $second, $month, $day, 2037)));

Now this work with date format y-m-d, also d-m-y.
Win XP + Apache/2.0.47 (Win32) mod_ssl/2.0.47 OpenSSL/0.9.7b PHP/4.3.2

Did anything has this problem? 
Did anything use other date formats of d/m/y or m/d/y on win32 machines? 
Maybe this need to include in second MS realize.