MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / loadDate

Function loadDate

agent/app/service/ssh.go:1555–1561  ·  view source on GitHub ↗
(currentYear int, DateStr string, nyc *time.Location)

Source from the content-addressed store, hash-verified

1553}
1554
1555func 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
1563func loadEncryptioMode(content string) string {
1564 if strings.HasPrefix(content, "ssh-rsa") {

Callers 1

loadSSHDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected