|
Page 2 of 2
|
TheSteffen
Joined: August 2006
Posts: 1625
Location: Magdeburg
|
Re: Birthday Dates Error.
I guess you fixed it in SVN 189
But it was definitely after 28.03.2010
____________ TheSteffen
Often SEARCH is the quickest way to get support.
IcyPhoenix German Support
|
#16 Tue 20 Apr, 2010 10:05 |
|
Sponsors
|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Zealo
Joined: October 2008
Posts: 9
|
Re: Birthday Dates Error.
Not to put any presure or anything, but
is there a fix for this problem yet?
|
#17 Mon 03 May, 2010 08:37 |
|
Mighty Gorgon
Luca Libralato
Joined: August 2006
Posts: 7191
Location: Borgo San Michele
|
Re: Birthday Dates Error.
Please try to replace realdate function in includes/functions.php.
function realdate($date_syntax = 'Ymd', $date = 0)
{
global $board_config;
$unix_time = ($date * 86400) + 1;
// Since we are using create_date, we need to adjust time back by timezone and dst to avoid date change...
$zone_offset = (3600 * $board_config['board_timezone']) + get_dst($unix_time, $board_config['board_timezone']);
$unix_time = $unix_time - $zone_offset;
return create_date($date_syntax, $unix_time, $board_config['board_timezone']);
}
Let me know if this will fix your issues.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#18 Sun 09 May, 2010 20:20 |
|
Danielc
Joined: August 2006
Posts: 248
Location:
|
Re: Birthday Dates Error.
Yeaaaah!!! It worked!!!
Thank you very much!!!
|
#19 Tue 11 May, 2010 02:05 |
|
TF
Joined: December 2010
Posts: 10
|
Re: Birthday Dates Error.
Please try to replace realdate function in includes/functions.php.
function realdate($date_syntax = 'Ymd', $date = 0)
{
global $board_config;
$unix_time = ($date * 86400) + 1;
// Since we are using create_date, we need to adjust time back by timezone and dst to avoid date change...
$zone_offset = (3600 * $board_config['board_timezone']) + get_dst($unix_time, $board_config['board_timezone']);
$unix_time = $unix_time - $zone_offset;
return create_date($date_syntax, $unix_time, $board_config['board_timezone']);
}
Let me know if this will fix your issues.
PLS somebody upload for me FIXed functions.php
THX
|
#20 Sun 02 Jan, 2011 00:05 |
|
TheSteffen
Joined: August 2006
Posts: 1625
Location: Magdeburg
|
Re: Fix For Birthday Dates Error
I guess it is
OPEN includes/functions.php
FIND
function realdate($date_syntax = 'Ymd', $date = 0)
{
return create_date($date_syntax, ($date * 86400) + 1, 0);
}
REPLACE WITH
function realdate($date_syntax = 'Ymd', $date = 0)
{
global $board_config;
$unix_time = ($date * 86400) + 1;
// Since we are using create_date, we need to adjust time back by timezone and dst to avoid date change...
$zone_offset = (3600 * $board_config['board_timezone']) + get_dst($unix_time, $board_config['board_timezone']);
$unix_time = $unix_time - $zone_offset;
return create_date($date_syntax, $unix_time, $board_config['board_timezone']);
}
____________ TheSteffen
Often SEARCH is the quickest way to get support.
IcyPhoenix German Support
|
#21 Wed 12 Jan, 2011 19:28 |
|
TF
Joined: December 2010
Posts: 10
|
Re: Fix For Birthday Dates Error
I guess it is
OPEN includes/functions.php
FIND
function realdate($date_syntax = 'Ymd', $date = 0)
{
return create_date($date_syntax, ($date * 86400) + 1, 0);
}
REPLACE WITH
function realdate($date_syntax = 'Ymd', $date = 0)
{
global $board_config;
$unix_time = ($date * 86400) + 1;
// Since we are using create_date, we need to adjust time back by timezone and dst to avoid date change...
$zone_offset = (3600 * $board_config['board_timezone']) + get_dst($unix_time, $board_config['board_timezone']);
$unix_time = $unix_time - $zone_offset;
return create_date($date_syntax, $unix_time, $board_config['board_timezone']);
}
THX but not work for me
Mighty Gorgon can you help please or somebody else ? PLS PLS ...
|
#22 Sat 15 Jan, 2011 11:10 |
|
TF
Joined: December 2010
Posts: 10
|
Re: Fix For Birthday Dates Error
I guess it is
OPEN includes/functions.php
FIND
function realdate($date_syntax = 'Ymd', $date = 0)
{
return create_date($date_syntax, ($date * 86400) + 1, 0);
}
REPLACE WITH
function realdate($date_syntax = 'Ymd', $date = 0)
{
global $board_config;
$unix_time = ($date * 86400) + 1;
// Since we are using create_date, we need to adjust time back by timezone and dst to avoid date change...
$zone_offset = (3600 * $board_config['board_timezone']) + get_dst($unix_time, $board_config['board_timezone']);
$unix_time = $unix_time - $zone_offset;
return create_date($date_syntax, $unix_time, $board_config['board_timezone']);
}
THX but not work for me
Mighty Gorgon can you help please or somebody else ? PLS PLS ...
PLS SOMEBODY HELP TO FIX THIS PROBLEM ..
|
#23 Thu 27 Jan, 2011 12:36 |
|
Mighty Gorgon
Luca Libralato
Joined: August 2006
Posts: 7191
Location: Borgo San Michele
|
Re: [SOLVED] Fix For Birthday Dates Error
TF, please open a new topic describing your issue and a way to replicate it, so I can have a look.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#24 Thu 03 Feb, 2011 13:04 |
|
nothere
Joined: May 2010
Posts: 45
|
Re: Fix For Birthday Dates Error
I just want to say, the fix worked for me as well. Thank you!
to note; sorry TF, I wish I could help.
|
#25 Wed 13 Apr, 2011 00:22 |
|
|
Page 2 of 2
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|