Modify

Opened 14 years ago

Last modified 14 years ago

#7444 new defect

VBA does not allow a time string "0:0:0".

Reported by: Yuji OKAZAKI Owned by: Yuji OKAZAKI
Priority: normal Component: VisualBasicTracConnectorIntegration
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description


Attachments (0)

Change History (2)

comment:1 Changed 14 years ago by Yuji OKAZAKI

This is a workaround patch. In ProjectConnector::addMilestone

     If due <> "" And due <> "0" Then    '基準計画の開始日を設定
-         t.Start = due
-        t.BaselineStart = due
+         t.Start = Replace(due, " 0:0:0", " 00:00:00")
+        t.BaselineStart = Replace(due, " 0:0:0", " 00:00:00")
         t.BaselineDuration = 0
     End If
    
    t.Duration = 0 'あえて期間を0として気づきやすくする
     If completed <> "" And completed <> "0" Then    '開始日を設定
          t.PercentComplete = 100
-        t.Start = completed
+        t.Start = Replace(completed, " 0:0:0", " 00:00:00")
         memo = memo + "実:" + completed + vbCrLf
     End If

comment:2 Changed 14 years ago by anonymous

This may be correct patch.
In TracXMLRPC::convertDateStr

-    convertDateStr = Format(d, "yyyy/mm/dd h:m:s")
+    convertDateStr = Format(d, "yyyy/mm/dd hh:mm:ss")

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Yuji OKAZAKI.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.