Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x.json2.decoder2: use json_str and json_len, intead of just json #22704

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions vlib/time/parse.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ fn check_and_extract_date(s string) !(int, int, int) {
// parse_rfc3339 returns the time from a date string in RFC 3339 datetime format.
// See also https://ijmacd.github.io/rfc3339-iso8601/ for a visual reference of
// the differences between ISO-8601 and RFC 3339.
@[direct_array_access]
pub fn parse_rfc3339(s string) !Time {
if s == '' {
enghitalo marked this conversation as resolved.
Show resolved Hide resolved
return error_invalid_time(0, 'datetime string is empty')
Expand Down
Loading
Loading