diff options
Diffstat (limited to 'aplus.go')
| -rw-r--r-- | aplus.go | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -8,8 +8,8 @@ import ( | |||
| 8 | "net/http" | 8 | "net/http" |
| 9 | "net/url" | 9 | "net/url" |
| 10 | "regexp" | 10 | "regexp" |
| 11 | "strings" | ||
| 12 | "strconv" | 11 | "strconv" |
| 12 | "strings" | ||
| 13 | "time" | 13 | "time" |
| 14 | ) | 14 | ) |
| 15 | 15 | ||
| @@ -238,7 +238,7 @@ func timetable(course_code int) { | |||
| 238 | hour, _ := strconv.Atoi(jsdate[3]) | 238 | hour, _ := strconv.Atoi(jsdate[3]) |
| 239 | min, _ := strconv.Atoi(jsdate[4]) | 239 | min, _ := strconv.Atoi(jsdate[4]) |
| 240 | sec, _ := strconv.Atoi(jsdate[5]) | 240 | sec, _ := strconv.Atoi(jsdate[5]) |
| 241 | date := time.Date(year, time.Month(month + 1), day, hour, min, sec, 0, time.UTC).Local() | 241 | date := time.Date(year, time.Month(month+1), day, hour, min, sec, 0, time.UTC).Local() |
| 242 | 242 | ||
| 243 | fmt.Println(date.Format("Mon Jan 02 15:04:05 MST 2006") + ": " + strings.Replace(statuses[i], "title=\"\">", "", 1)) | 243 | fmt.Println(date.Format("Mon Jan 02 15:04:05 MST 2006") + ": " + strings.Replace(statuses[i], "title=\"\">", "", 1)) |
| 244 | } | 244 | } |
