grim/youtrack-import
Clone
Summary
Browse
Changes
Graph
Wow is it helpful when we spit out the issue number that failed to import
draft
2020-08-04, Gary Kramlich
6ec0d80db3e0
Wow is it helpful when we spit out the issue number that failed to import
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
""
}