Skip to content

Commit da47c62

Browse files
committed
test, provide regression case for issue #80
1 parent 0851758 commit da47c62

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

test/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,7 @@ dt_tests += dzone.010.clit
864864
dt_tests += dzone.011.clit
865865
dt_tests += dzone.012.clit
866866
dt_tests += dzone.013.clit
867+
dt_tests += dzone.014.clit
867868

868869
dt_tests += dsort.001.clit
869870
dt_tests += dsort.002.clit

test/dzone.014.clit

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/clitoris ## -*- shell-script -*-
2+
3+
## this is issue #80
4+
$ dzone --input-format='%m/%d/%Y,%H:%M' --from-zone='America/New_York' UTC '03/14/2017,11:30'
5+
2017-03-14T15:30:00+00:00 UTC
6+
$ dzone --input-format='%m/%d/%Y,%H:%M' --from-zone='America/New_York' '03/14/2017,11:30'
7+
2017-03-14T15:30:00-04:00
8+
$ dzone --input-format='%m/%d/%Y,%H:%M' UTC '03/14/2017,11:30'
9+
2017-03-14T11:30:00+00:00 UTC
10+
$ dzone --input-format='%m/%d/%Y,%H:%M' '03/14/2017,11:30'
11+
2017-03-14T11:30:00+00:00
12+
$
13+
14+
## dzone.014.clit ends here

0 commit comments

Comments
 (0)