Modify

Opened 3 years ago

Last modified 3 years ago

#7444 new defect

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

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

Description


Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by 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 3 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")

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as new .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from okazaki. Next status will be 'new'.
The owner will be changed from okazaki to anonymous. Next status will be 'assigned'.
Author


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

 
Note: See TracTickets for help on using tickets.