| 657 | } |
| 658 | |
| 659 | Int32 Timezone::Offset(const char* code ,bool& isDST) { |
| 660 | if (String::ICompare(code,"Z")==0 || String::ICompare(code,"GMT")==0 || String::ICompare(code,"UTC")==0) { |
| 661 | isDST = false; |
| 662 | return Date::GMT; |
| 663 | } |
| 664 | auto it = Timezones.find(code); |
| 665 | if (it == Timezones.end()) |
| 666 | return Date::GMT; |
| 667 | isDST = it->second.second; |
| 668 | return it->second.first; |
| 669 | } |
| 670 | |
| 671 | |
| 672 | } // namespace Mona |