skip menu and go to main content

body start

MoniWiki

Closed  DueDate 매크로 버그 : 날짜가 하루씩 밀립니다.

04.03.26-12:02:16

300306

Submitted by 안기영

Assignee Nobody

View1146

Priority3

날짜가 하루씩 밀립니다.

원래 소스의
// Copyright 2003 by Won-Kyu Park <wkpark at kldp.org>
// All rights reserved. Distributable under GPL see COPYING
// DueDate plugin for the MoniWiki
//
// Usage: DueDate([[YYYY]M]]DD)
//
// $Id: DueDate.php,v 1.2 2003/08/10 08:20:36 wkpark Exp $
// vim:et:ts=2:
에서

$time_diff= (int) (($time_val - time())/86400);

를 아래와 같이 고쳐야 합니다. 안그럼 내일인데 오늘이라고 나오더군요.
24 시간 이내라서 time_diff 값이 0 이 나와버려서요.

$time_diff= (int) (($time_val + 86400 - 1 - time())/86400);

Comments on this artfact

0 Comments

wkpark

"resolution_id" was changed from "100" to "None"
"State" was changed from "Open" to "Closed"

04.08.02-13:52:29