(currentYear int, DateStr string, nyc *time.Location)
| 1553 | } |
| 1554 | |
| 1555 | func loadDate(currentYear int, DateStr string, nyc *time.Location) time.Time { |
| 1556 | itemDate, err := time.ParseInLocation("2006 Jan 2 15:04:05", fmt.Sprintf("%d %s", currentYear, DateStr), nyc) |
| 1557 | if err != nil { |
| 1558 | itemDate, _ = time.ParseInLocation("2006 Jan 2 15:04:05", DateStr, nyc) |
| 1559 | } |
| 1560 | return itemDate |
| 1561 | } |
| 1562 | |
| 1563 | func loadEncryptioMode(content string) string { |
| 1564 | if strings.HasPrefix(content, "ssh-rsa") { |