1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fix time.parse()

This commit is contained in:
yatsen1
2019-12-23 18:25:44 +08:00
committed by Alexander Medvednikov
parent b1013697d1
commit d03f0ec294
2 changed files with 9 additions and 1 deletions

View File

@@ -306,7 +306,7 @@ pub fn parse(s string) Time {
}
shms := s[pos..]
hms := shms.split(':')
hour := hms[0]
hour := hms[0][1..]
minute := hms[1]
second := hms[2]
// //////////