grim/youtrack-import
Clone
Summary
Browse
Changes
Graph
Grab the distinct version and milestone fields from tickets as well
draft
default
tip
2020-09-07, Gary Kramlich
c3d30cb6d4ea
Grab the distinct version and milestone fields from tickets as well
package
trac
import
(
"database/sql"
"time"
)
func
convertTime
(
t
int64
)
time
.
Time
{
secs
:=
t
/
1000000
mils
:=
t
%
1000000
return
time
.
Unix
(
secs
,
mils
)
}
func
convertString
(
s
sql
.
NullString
)
string
{
if
s
.
Valid
{
return
s
.
String
}
return
""
}