summaryrefslogtreecommitdiff
path: root/lib/date/fmt.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/date/fmt.myr')
-rw-r--r--lib/date/fmt.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/date/fmt.myr b/lib/date/fmt.myr
index 82f865b..39df830 100644
--- a/lib/date/fmt.myr
+++ b/lib/date/fmt.myr
@@ -40,9 +40,9 @@ const sbfmt = {sb, ap, opts
const datefmt = {sb, fmt, d
var c
while fmt.len != 0
- (c, fmt) = std.strstep(fmt)
+ (c, fmt) = std.charstep(fmt)
if c == '%'
- (c, fmt) = std.strstep(fmt)
+ (c, fmt) = std.charstep(fmt)
match c
| 'a': std.sbfmt(sb, "{}", _names.abbrevday[d.wday])
| 'A': std.sbfmt(sb, "{}", _names.fullday[d.wday])