grim/youtrack-import

Use the built in mime stuff to figure out the content type for attachments
package youtrack
import (
"fmt"
"time"
)
func formatTime(t time.Time) int64 {
if t.IsZero() {
return 0
}
return t.Unix() * 1000
}
func formatTimeString(t time.Time) string {
return fmt.Sprintf("%d", formatTime(t))
}