(config)
| 2924 | } |
| 2925 | |
| 2926 | function createFromConfig(config) { |
| 2927 | var res = new Moment(checkOverflow(prepareConfig(config))); |
| 2928 | if (res._nextDay) { |
| 2929 | // Adding is smart enough around DST |
| 2930 | res.add(1, 'd'); |
| 2931 | res._nextDay = undefined; |
| 2932 | } |
| 2933 | |
| 2934 | return res; |
| 2935 | } |
| 2936 | |
| 2937 | function prepareConfig(config) { |
| 2938 | var input = config._i, |
no test coverage detected