Hi Developer's
get following wrong Date from string
extension DateFormatter {
convenience init(dateFormat: String) {
self.init()
self.locale = Locale.current
self.timeZone = TimeZone.current
self.dateFormat = dateFormat
}
}
extension Date{
func getCurrentTimestamp()->String{
let formatter = DateFormatter()
formatter.timeZone = TimeZone.current
formatter.dateFormat = "yyyy-MM-dd HH:mm:ss"
return(String(describing:formatter.string(from: self)))
}
}
let dateFormatter = DateFormatter(dateFormat: "HH:mm")
let myDate = dateFormatter.date(from: "10:30")
print myDate
2000-01-01 08:55:00 +0000
print TimeZone,current
"Europe/Berlin"
print Locale.current.description
"de_DE (current)"
print Date().getCurrentTimeStamp()
2018-10-14 03:56:23"
what is going on here... :O :O
on last Verion of Xcode and Beta too
thank's for any suggestions
Edit: https://datingexpat.fun/
Selecting any option will automatically load the page