From 6bdc0b978d0e29f75efee4bc254f153dc99fdfb4 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 23 Dec 2004 06:40:13 +0000 Subject: [PATCH] r14: Added datelike() function in includes/functions.php. --- includes/functions.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/includes/functions.php b/includes/functions.php index a344580..bb576bd 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -238,6 +238,19 @@ function construct_option_select($name, $array, $selected = 0, $valuekey = '', $ return '"; } +// ########################## Start datelike ######################### +function datelike($format, $timestamp) +{ + global $bugsys; + + if (!$format OR $format == 'standard') + { + $format = $bugsys->options['dateformat']; + } + + return date($format, ($timestamp + (60 * $bugsys->userinfo['timezone']))); +} + /*=====================================================================*\ || ################################################################### || # $HeadURL$ -- 2.22.5