Skip to content

Commit da95879

Browse files
Update README.md
1 parent 3f73414 commit da95879

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Give us a follow on Twitter:
3636
[web_ridge](https://twitter.com/web_ridge)
3737

3838
## Donate
39-
Instead of spending all your money on a M1 Mac, give it to us so we can buy one.
39+
Please contribute or donate so we can spend more time on this library
4040

4141
[Donate with PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7B9KKQLXTEW9Q&source=url)
4242

@@ -335,9 +335,17 @@ if (isHermesEnabled || isAndroid) {
335335

336336

337337
// https://formatjs.io/docs/polyfills/intl-datetimeformat/#default-timezone
338-
let RNLocalize = require('react-native-localize');
338+
339339
if ('__setDefaultTimeZone' in Intl.DateTimeFormat) {
340+
341+
// If you are using react-native-cli
342+
let RNLocalize = require('react-native-localize');
340343
Intl.DateTimeFormat.__setDefaultTimeZone(RNLocalize.getTimeZone());
344+
345+
// Are you using Expo, use this instead of previous 2 lines
346+
// Intl.DateTimeFormat.__setDefaultTimeZone(
347+
// require("expo-localization").timezone
348+
// );
341349
}
342350
}
343351
```

0 commit comments

Comments
 (0)